-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
108 lines (94 loc) · 2.05 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
cmake_minimum_required(VERSION 2.8.3)
project(temoto_context_manager)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++2a)
## 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
roscpp
roslib
message_generation
geometry_msgs
shape_msgs
visualization_msgs
diagnostic_msgs
tf
tf2
tf2_ros
tf2_geometry_msgs
temoto_core
temoto_resource_registrar
)
add_message_files(FILES
ObjectContainer.msg
MapContainer.msg
ItemContainer.msg
ComponentContainer.msg
RobotContainer.msg
)
add_service_files(
FILES
UpdateEmr.srv
GetEMRItem.srv
GetEMRVector.srv
RemoveItem.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
shape_msgs
visualization_msgs
diagnostic_msgs
temoto_resource_registrar
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES yaml-cpp
CATKIN_DEPENDS roscpp roslib temoto_core temoto_resource_registrar
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(temoto_context_manager
src/context_manager_node.cpp
src/context_manager.cpp
src/context_manager_containers.cpp
src/env_model_repository.cpp
src/emr_ros_interface.cpp
)
add_dependencies(temoto_context_manager
${catkin_EXPORTED_TARGETS}
${${PROJECT_NAME}_EXPORTED_TARGETS}
)
target_link_libraries(temoto_context_manager
${catkin_LIBRARIES}
)
#
# Build the examples
#
# Setter example
add_executable(emr_item_setter_example
examples/set_emr_items.cpp
)
add_dependencies(emr_item_setter_example
${catkin_EXPORTED_TARGETS}
${${PROJECT_NAME}_EXPORTED_TARGETS}
)
target_link_libraries(emr_item_setter_example
${catkin_LIBRARIES}
)
# Visualizer example
add_executable(emr_item_visualizer_example
examples/visualize_emr_items.cpp
)
add_dependencies(emr_item_visualizer_example
${catkin_EXPORTED_TARGETS}
${${PROJECT_NAME}_EXPORTED_TARGETS}
)
target_link_libraries(emr_item_visualizer_example
${catkin_LIBRARIES}
)