2 test_escape_string_as_regex()
4 file(GLOB Eigen_directory_files "*")
6 escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
8 foreach(f ${Eigen_directory_files})
9 if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src")
10 list(APPEND Eigen_directory_files_to_install ${f})
12 endforeach(f ${Eigen_directory_files})
15 ${Eigen_directory_files_to_install}
16 DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
19 install(DIRECTORY src DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel FILES_MATCHING PATTERN "*.h")