mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
5f55ab524c
lazyAssign overloads of <xpr> are automatically called (this also reduces assign instansiations)
34 lines
882 B
CMake
34 lines
882 B
CMake
SET(Eigen_HEADERS Core CoreDeclarations LU Cholesky QR Geometry Sparse Array)
|
|
|
|
IF(BUILD_LIB)
|
|
SET(Eigen_SRCS
|
|
src/Core/CoreInstantiations.cpp
|
|
src/Cholesky/CholeskyInstantiations.cpp
|
|
src/QR/QrInstantiations.cpp
|
|
)
|
|
|
|
ADD_LIBRARY(Eigen2 SHARED ${Eigen_SRCS})
|
|
|
|
INSTALL(TARGETS Eigen2
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
ENDIF(BUILD_LIB)
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g1 -O2")
|
|
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g1 -O2")
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
SET(INCLUDE_INSTALL_DIR
|
|
"${CMAKE_INSTALL_PREFIX}/include"
|
|
CACHE PATH
|
|
"The directory where we install the header files"
|
|
FORCE)
|
|
|
|
INSTALL(FILES
|
|
${Eigen_HEADERS}
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen
|
|
)
|
|
|
|
ADD_SUBDIRECTORY(src) |