You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
607 B

  1. include(RegexUtils)
  2. test_escape_string_as_regex()
  3. file(GLOB Eigen_directory_files "*")
  4. escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
  5. foreach(f ${Eigen_directory_files})
  6. if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src")
  7. list(APPEND Eigen_directory_files_to_install ${f})
  8. endif()
  9. endforeach(f ${Eigen_directory_files})
  10. install(FILES
  11. ${Eigen_directory_files_to_install}
  12. DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
  13. )
  14. add_subdirectory(src)