1include(RegexUtils) 2test_escape_string_as_regex() 3 4file(GLOB Eigen_directory_files "*") 5 6escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") 7 8foreach(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}) 11 endif() 12endforeach(f ${Eigen_directory_files}) 13 14install(FILES 15 ${Eigen_directory_files_to_install} 16 DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel 17 ) 18 19add_subdirectory(src) 20