-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (51 loc) · 1.35 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
cmake_minimum_required(VERSION 3.0.2)
project(RoboticsProject_2)
## 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
map_msgs
roscpp
rospy
std_msgs
tf
message_generation
roslib
)
add_service_files(
FILES
save_map.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
####
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS
roscpp
std_msgs
message_runtime
roslib
)
#######
## Build ##
###########
include_directories(
include ${catkin_INCLUDE_DIRS}
)
add_executable(OdometryBroadcaster src/OdometryBroadcaster.cpp)
target_link_libraries(OdometryBroadcaster ${catkin_LIBRARIES})
add_dependencies(OdometryBroadcaster ${catkin_EXPORTED_TARGETS})
add_executable(PathBroadcaster src/PathBroadcaster.cpp)
target_link_libraries(PathBroadcaster ${catkin_LIBRARIES})
add_dependencies(PathBroadcaster ${catkin_EXPORTED_TARGETS})
add_executable(CustomMapSaver src/CustomMapSaver.cpp)
target_link_libraries(CustomMapSaver ${catkin_LIBRARIES})
add_dependencies(CustomMapSaver ${catkin_EXPORTED_TARGETS})
catkin_install_python(PROGRAMS scripts/occupancy_grid_processing.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)