aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
blob: ca9780ce117c28cb166d871a6d36f4348aec80dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
project(Eigen)

OPTION(BUILD_TESTS "Build tests"  OFF)
OPTION(BUILD_EXAMPLES "Build 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(src)
add_subdirectory(test)
add_subdirectory(doc)