-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
34 lines (23 loc) · 993 Bytes
/
CMakeLists.txt
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
# PROJECT SETTINGS
cmake_minimum_required(VERSION 3.19) # Minumum required to use CMakePresets.json
project(hpr-sim DESCRIPTION "High Power Rocktry - Flight Simulation"
LANGUAGES CXX
VERSION 0.0.0
)
#-----------------------------------------------------------------------------#
# BUILD SETTINGS
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# GNU GSL - minimize build
set(NO_AMPL_BINDINGS true)
set(GSL_DISABLE_TESTS true)
set(BUILDLIBS "interpolation"
"ode-initval2"
)
#-----------------------------------------------------------------------------#
# SOURCE SUBDIRECTORIES
add_subdirectory(lib/pybind11) # Provides CMake helper functions
add_subdirectory(lib/gsl) # Provides math utilities
add_subdirectory(lib/fmt) # Provides stdio alternative
add_subdirectory(src) # CPP modules via pybind11
# lib/eigen is header-only, does not need to be a compilation target