-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
109 lines (89 loc) · 3.37 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
cmake_minimum_required(VERSION 2.8.3)
project(rosplan_interface_rcllrefbox)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
## 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
actionlib
diagnostic_msgs
rcll_ros_msgs
mongodb_store
roscpp
rosplan_dispatch_msgs
rosplan_knowledge_msgs
rosplan_planning_system
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
#find_package(Boost REQUIRED COMPONENTS format)
include(cxx_atleast)
cxx_atleast(14)
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
## To declare and build dynamic reconfigure parameters within this
## package, follow these steps:
## * In the file package.xml:
## * add a build_depend and a run_depend tag for "dynamic_reconfigure"
## * In this file (CMakeLists.txt):
## * add "dynamic_reconfigure" to
## find_package(catkin REQUIRED COMPONENTS ...)
## * uncomment the "generate_dynamic_reconfigure_options" section below
## and list every .cfg file to be processed
## Generate dynamic reconfigure parameters in the 'cfg' folder
# generate_dynamic_reconfigure_options(
# cfg/DynReconf1.cfg
# cfg/DynReconf2.cfg
# )
###################################
## 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 you 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(
# INCLUDE_DIRS include
# LIBRARIES rosplan_interface_rcllrefbox
CATKIN_DEPENDS actionlib diagnostic_msgs rcll_ros_msgs mongodb_store roscpp rosplan_dispatch_msgs rosplan_knowledge_msgs rosplan_planning_system
# DEPENDS boost
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${boost_INCLUDE_DIRS}
)
add_executable(rosplan_interface_rcllrefbox src/rosplan_interface_rcllrefbox.cpp)
add_executable(rosplan_kb_updater_rcll_machine_info src/kb_updater_machine_info)
add_executable(rosplan_kb_updater_rcll_order_info src/kb_updater_order_info)
## Add cmake target dependencies of the executable
# add_dependencies(rosplan_interface_rcllrefbox_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(rosplan_interface_rcllrefbox
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${boost_LIBRARIES}
)
target_link_libraries(rosplan_kb_updater_rcll_machine_info
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${boost_LIBRARIES}
)
target_link_libraries(rosplan_kb_updater_rcll_order_info
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${boost_LIBRARIES}
)
#############
## Install ##
#############
install(TARGETS rosplan_interface_rcllrefbox rosplan_kb_updater_rcll_order_info rosplan_kb_updater_rcll_machine_info
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)