2008-08-29 01:33:27 +08:00
|
|
|
SET(Eigen_HEADERS Core LU Cholesky QR Geometry Sparse Array SVD Regression)
|
2008-06-01 07:21:49 +08:00
|
|
|
|
2008-07-09 21:54:21 +08:00
|
|
|
IF(BUILD_LIB)
|
2008-06-27 18:53:30 +08:00
|
|
|
SET(Eigen_SRCS
|
|
|
|
src/Core/CoreInstantiations.cpp
|
|
|
|
src/Cholesky/CholeskyInstantiations.cpp
|
|
|
|
src/QR/QrInstantiations.cpp
|
|
|
|
)
|
2008-06-01 07:21:49 +08:00
|
|
|
|
2008-06-27 18:53:30 +08:00
|
|
|
ADD_LIBRARY(Eigen2 SHARED ${Eigen_SRCS})
|
2008-07-09 21:54:21 +08:00
|
|
|
|
|
|
|
INSTALL(TARGETS Eigen2
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
ENDIF(BUILD_LIB)
|
2008-06-14 21:02:41 +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
|
|
|
|
|
|
|
SET(INCLUDE_INSTALL_DIR
|
2008-08-16 20:56:38 +08:00
|
|
|
"${CMAKE_INSTALL_PREFIX}/include/eigen2"
|
2007-09-05 18:42:54 +08:00
|
|
|
CACHE PATH
|
|
|
|
"The directory where we install the header files"
|
|
|
|
FORCE)
|
|
|
|
|
2008-06-01 07:21:49 +08:00
|
|
|
INSTALL(FILES
|
|
|
|
${Eigen_HEADERS}
|
2007-12-29 00:20:00 +08:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen
|
2007-09-05 18:42:54 +08:00
|
|
|
)
|
2007-09-09 17:41:15 +08:00
|
|
|
|
2008-08-29 01:33:27 +08:00
|
|
|
ADD_SUBDIRECTORY(src)
|