This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
75 lines (63 loc) · 1.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.9)
project(rlss)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(third_party/splx)
add_subdirectory(third_party/lp_wrappers)
find_package(Boost COMPONENTS filesystem REQUIRED)
add_library(rlss INTERFACE)
target_include_directories(
rlss INTERFACE
include
${Boost_INCLUDE_DIRS}
third_party/libMultiRobotPlanning/include
)
target_link_libraries(
rlss INTERFACE
splx
qp_wrappers
lp_wrappers
${Boost_LIBRARIES}
${Boost_FILESYSTEM_LIBRARY}
)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
endif()
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
include(tests/Tests.cmake)
endif()
option(BUILD_RLSS_EXAMPLES "build examples of rlss" OFF)
option(ENABLE_RLSS_DEBUG_MESSAGES "enables debug message for rlss" OFF)
option(ENABLE_RLSS_MATHEMATICA_OUTPUT "enables debug message for rlss" OFF)
option(ENABLE_RLSS_JSON_BUILDER "enables json builder for vis tool" OFF)
option(ENABLE_RLSS_STATISTICS "enables statistics for rlss" OFF)
if(ENABLE_RLSS_DEBUG_MESSAGES)
target_compile_definitions(
rlss
INTERFACE
ENABLE_RLSS_DEBUG_MESSAGES
)
endif()
if(ENABLE_RLSS_MATHEMATICA_OUTPUT)
target_compile_definitions(
rlss
INTERFACE
ENABLE_RLSS_MATHEMATICA_OUTPUT
)
endif()
if(ENABLE_RLSS_JSON_BUILDER)
target_compile_definitions(
rlss
INTERFACE
ENABLE_RLSS_JSON_BUILDER
)
endif()
if(ENABLE_RLSS_STATISTICS)
target_compile_definitions(
rlss
INTERFACE
ENABLE_RLSS_STATISTICS
)
endif()
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_RLSS_EXAMPLES)
include(examples/Examples.cmake)
endif()