mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
6fb3e5f176
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style.
20 lines
668 B
CMake
20 lines
668 B
CMake
include(RegexUtils)
|
|
test_escape_string_as_regex()
|
|
|
|
file(GLOB Eigen_directory_files "*")
|
|
|
|
escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
foreach(f ${Eigen_directory_files})
|
|
if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
list(APPEND Eigen_directory_files_to_install ${f})
|
|
endif()
|
|
endforeach()
|
|
|
|
install(FILES
|
|
${Eigen_directory_files_to_install}
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
|
|
)
|
|
|
|
install(DIRECTORY src DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel FILES_MATCHING PATTERN "*.h")
|