2009-01-26 21:53:43 +08:00
|
|
|
set(Eigen_HEADERS Core LU Cholesky QR Geometry Sparse Array SVD LeastSquares QtAlignedMalloc StdVector)
|
2008-06-01 07:21:49 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
if(EIGEN_BUILD_LIB)
|
|
|
|
set(Eigen_SRCS
|
2008-06-27 18:53:30 +08:00
|
|
|
src/Core/CoreInstantiations.cpp
|
|
|
|
src/Cholesky/CholeskyInstantiations.cpp
|
|
|
|
src/QR/QrInstantiations.cpp
|
|
|
|
)
|
2008-06-01 07:21:49 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
add_library(Eigen2 SHARED ${Eigen_SRCS})
|
2008-07-09 21:54:21 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
install(TARGETS Eigen2
|
2008-07-09 21:54:21 +08:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib)
|
2008-12-02 20:59:10 +08:00
|
|
|
endif(EIGEN_BUILD_LIB)
|
2008-06-14 21:02:41 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
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)
|
2007-09-05 18:42:54 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
install(FILES
|
2008-06-01 07:21:49 +08:00
|
|
|
${Eigen_HEADERS}
|
2009-02-23 15:50:56 +08:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
|
2007-09-05 18:42:54 +08:00
|
|
|
)
|
2007-09-09 17:41:15 +08:00
|
|
|
|
2008-12-02 20:59:10 +08:00
|
|
|
add_subdirectory(src)
|