forked from eric-heiden/steering_functions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (39 loc) · 1.33 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
cmake_minimum_required(VERSION 2.8.3)
project(steering_functions)
## Compile as C++17, supported in RACK
add_compile_options(-std=c++17)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Eigen3 REQUIRED)
find_package(ompl 1.5.0 REQUIRED)
include_directories(${OMPL_INCLUDE_DIRS})
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${EIGEN3_INCLUDE_DIRS}
)
## Get all source files
file(GLOB SRC_HC_CC_SS src/hc_cc_state_space/*.cpp)
## Get OMPL state space definitions
file(GLOB OMPL_SPACES include/ompl_state_spaces/*.hpp)
set(SRC_FILES
src/dubins_state_space/dubins_state_space.cpp
src/reeds_shepp_state_space/reeds_shepp_state_space.cpp
src/utilities/utilities.cpp
src/filter/ekf.cpp
${SRC_HC_CC_SS}
${OMPL_SPACES})
## Declare a C++ library
add_library(${PROJECT_NAME} ${SRC_FILES})
target_link_libraries(${PROJECT_NAME} ${OMPL_LIBRARIES})
## install include directory && library
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(DIRECTORY include/steering_functions DESTINATION include)
install(DIRECTORY include/ompl_state_spaces DESTINATION include)