forked from Wombatwarrior/BA_space_debris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (25 loc) · 792 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
35
cmake_minimum_required(VERSION 3.10)
project(OrbitPropagator)
set(CMAKE_CXX_STANDARD 17)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug;Release")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
enable_testing()
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set (PROJECT_BINARY debris_sim)
add_subdirectory(src)
option(DebrisSim_Tests "Build tests" ON)
if(DebrisSim_Tests)
add_subdirectory(lib/googletest)
add_subdirectory(test)
endif()
option(DebrisSim_Thesis "Build the thesis document" OFF)
if(DebrisSim_Thesis)
add_subdirectory(Thesis)
endif()
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(doxygen)