-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
70 lines (61 loc) · 2.08 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
cmake_minimum_required(VERSION 3.5.0)
project(ros_proseco_planning)
###################################
## OpenMP
###################################
find_package(OpenMP REQUIRED)
###################################
## Include Checks
###################################
include(CheckIncludeFiles)
check_include_files("valgrind/callgrind.h" FOUND_CALLGRIND_H)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/include/${PROJECT_NAME}/config.h)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
proseco_planning
roscpp
roslib
)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if your package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
CATKIN_DEPENDS proseco_planning
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include
${catkin_INCLUDE_DIRS}
)
add_executable(proseco_planning_node
src/main.cpp
src/prosecoPlanner.cpp
)
target_compile_features(proseco_planning_node PUBLIC cxx_std_20)
# Specify libraries to link a library or executable target against
target_link_libraries(proseco_planning_node
${catkin_LIBRARIES}
${proseco_planning_LIBRARIES}
OpenMP::OpenMP_CXX
)
#############
## INSTALL ##
#############
install(TARGETS proseco_planning_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY python/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/python
)