-
Notifications
You must be signed in to change notification settings - Fork 20
/
CMakeLists.txt
51 lines (41 loc) · 1.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
cmake_minimum_required(VERSION 2.8.3)
project(map_store)
find_package(catkin REQUIRED COMPONENTS
message_generation
nav_msgs
rosconsole
roscpp
rostest
warehouse_ros
)
add_message_files(
DIRECTORY msg
FILES
MapListEntry.msg
)
add_service_files(
DIRECTORY srv
FILES
DeleteMap.srv
ListMaps.srv
PublishMap.srv
RenameMap.srv
SaveMap.srv
)
generate_messages()
catkin_package( CATKIN_DEPENDS message_runtime )
include_directories(${catkin_INCLUDE_DIRS})
add_executable(map_saver src/map_saver.cpp)
add_dependencies(map_saver map_store_gencpp)
target_link_libraries(map_saver uuid ${catkin_LIBRARIES})
add_executable(map_manager src/map_manager.cpp)
add_dependencies(map_manager map_store_gencpp)
target_link_libraries(map_manager uuid ${catkin_LIBRARIES})
add_rostest(test/map_store.test)
install(TARGETS map_saver
map_manager
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(PROGRAMS scripts/add_map.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})