-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (36 loc) · 1.53 KB
/
CMakeLists.txt
File metadata and controls
53 lines (36 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 2.6)
project(eema)
enable_language(CXX)
# Eigen support
option (USE_EIGEN "Build library with Eigen support" ON)
set (EIGEN_INCLUDE_DIR "INCLUDE directory for Eigen library" third-party-libs/eigen3)
include_directories(${EIGEN_INCLUDE_DIR})
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpic")
#Bring the headers, such as *.h into the project, should be renamed to include
include_directories(include)
# All the source code we care about
add_subdirectory(src)
file(COPY templates DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY third-party-libs DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY include DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
#===============================================================================
# Examples and tests
#===============================================================================
option(EEMA_EXAMPLES "Activate examples" OFF)
if(EEMA_EXAMPLES)
add_subdirectory(examples)
endif()
#===============================================================================
# Documentation
#===============================================================================
option(EEMA_DOCUMENTATION "Build source documentation using Doxygen." OFF)
if(EEMA_DOCUMENTATION)
add_subdirectory(doc)
endif()
#===============================================================================
# Graphic User Interface
#===============================================================================
option(EEMA_GUI "Build the EEMA GUI using Qt." OFF)
if(EEMA_GUI)
add_subdirectory(gui)
endif()