mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
86220784b6
1) Eigen2 co-installable with Eigen1 without conflict, without affecting programs including either. 2) #include<Eigen/Core> without the .h without conflict with the Core/ directory 3) Uniformize coding style of the CMakeLists.
19 lines
664 B
CMake
19 lines
664 B
CMake
PROJECT(Eigen)
|
|
|
|
OPTION(BUILD_TESTS "Build tests" OFF)
|
|
OPTION(BUILD_DOC "Build documentation and examples" OFF)
|
|
|
|
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
|
IF(CMAKE_SYSTEM_NAME MATCHES Linux)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common -fstrict-aliasing")
|
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux)
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
|
|
|
|
ADD_SUBDIRECTORY(Eigen)
|
|
ADD_SUBDIRECTORY(test)
|
|
ADD_SUBDIRECTORY(doc)
|