Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / Eigen / CMakeLists.txt
blob9eb502b792d4a9607e2d323f2d8114939b43c209
1 include(RegexUtils)
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})
11   endif()
12 endforeach(f ${Eigen_directory_files})
14 install(FILES
15   ${Eigen_directory_files_to_install}
16   DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
17   )
19 install(DIRECTORY src DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel FILES_MATCHING PATTERN "*.h")