-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
42 lines (26 loc) · 804 Bytes
/
CMakeLists.txt
File metadata and controls
42 lines (26 loc) · 804 Bytes
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
cmake_minimum_required(VERSION 3.0)
project(TurboLynxODE VERSION 1.0)
# Set to OFF when you don't need the examples
set(BUILD_EXAMPLES ON)
include_directories( ./include ./src)
if(BUILD_EXAMPLES)
include_directories(./libs/matplotlib-cpp)
endif(BUILD_EXAMPLES)
find_package (Eigen3 3.3 REQUIRED NO_MODULE)
add_subdirectory(./libs/matplotlib-cpp)
include_directories(${EIGEN_INCLUDE_DIR})
##############
## Examples ##
##############
if(BUILD_EXAMPLES)
add_executable(massSpringDamper ./examples/massSpringDamper.cpp)
target_link_libraries(massSpringDamper
matplotlib_cpp
Eigen3::Eigen
)
add_executable(lorenzSystem ./examples/lorenzSystem.cpp)
target_link_libraries(lorenzSystem
matplotlib_cpp
Eigen3::Eigen
)
endif(BUILD_EXAMPLES)