2010-11-22 23:47:07 +08:00
|
|
|
include(RegexUtils)
|
|
|
|
test_escape_string_as_regex()
|
|
|
|
|
2009-11-20 01:31:11 +08:00
|
|
|
file(GLOB Eigen_directory_files "*")
|
2010-11-22 23:47:07 +08:00
|
|
|
|
|
|
|
escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
2009-11-20 01:31:11 +08:00
|
|
|
foreach(f ${Eigen_directory_files})
|
2010-11-22 23:47:07 +08:00
|
|
|
if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src")
|
2009-11-20 01:31:11 +08:00
|
|
|
list(APPEND Eigen_directory_files_to_install ${f})
|
|
|
|
endif()
|
|
|
|
endforeach(f ${Eigen_directory_files})
|
2008-06-01 07:21:49 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
install(FILES
|
2009-11-20 01:31:11 +08:00
|
|
|
${Eigen_directory_files_to_install}
|
2009-02-23 15:50:56 +08:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
|
2007-09-05 18:42:54 +08:00
|
|
|
)
|
2007-09-09 17:41:15 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
add_subdirectory(src)
|