mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-19 19:12:23 -07:00
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
19 lines
694 B
CMake
19 lines
694 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(f ${Eigen_directory_files})
|
|
|
|
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")
|