mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-29 17:55:13 +08:00

it allows the possiblity to save some compilation time by linking to it *and* defining the token EIGEN_EXTERN_INSTANCIATIONS
25 lines
517 B
CMake
25 lines
517 B
CMake
SET(Eigen_HEADERS Core CoreDeclarations LU Cholesky QR)
|
|
|
|
SET(Eigen_SRCS
|
|
src/Core/CoreInstanciations.cpp
|
|
)
|
|
|
|
ADD_LIBRARY(Eigen2 ${Eigen_SRCS})
|
|
|
|
SET(INCLUDE_INSTALL_DIR
|
|
"${CMAKE_INSTALL_PREFIX}/include/eigen2"
|
|
CACHE PATH
|
|
"The directory where we install the header files"
|
|
FORCE)
|
|
|
|
INSTALL(FILES
|
|
${Eigen_HEADERS}
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen
|
|
)
|
|
|
|
INSTALL(TARGETS Eigen2
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
ADD_SUBDIRECTORY(src) |