-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (40 loc) · 1.2 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.15)
project(PaC)
include(cmake/StandardProjectSettings.cmake)
include(cmake/PreventInSourceBuilds.cmake)
add_library(project_options INTERFACE)
target_compile_features(project_options INTERFACE cxx_std_17)
add_library(project_warnings INTERFACE)
include(cmake/Cache.cmake)
include(cmake/CompilerWarnings.cmake)
set_project_warnings(project_warnings)
include(cmake/Sanitizers.cmake)
enable_sanitizers(project_options)
include(cmake/Doxygen.cmake)
enable_doxygen()
include(cmake/StaticAnalyzers.cmake)
option(USE_UTILITIES "Enable compilation of Utilities library" ON)
option(USE_MODELS "Enable compilation of Models library" ON)
option(USE_PLANNING "Enable compilation of Planning algorithms" ON)
option(USE_CONTROL "Enable compilation of Control algorithms" ON)
option(USE_TESTS "Enable tests" ON)
# Utilities
if(USE_UTILITIES)
message("Compiling Utilities")
add_subdirectory(utilities)
endif()
# Models
if(USE_MODELS)
message("Compiling Models")
add_subdirectory(models)
endif()
# Planning
if(USE_PLANNING)
message("Compiling Planners")
add_subdirectory(planning)
endif()
# Control
if(USE_CONTROL)
message("Compiling Controllers")
add_subdirectory(control)
endif()