forked from spuetz/fake_robot_pose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·42 lines (33 loc) · 1.12 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
cmake_minimum_required(VERSION 2.8.3)
project(robot_pose)
find_package(catkin REQUIRED COMPONENTS
roscpp
tf2
tf2_ros
tf2_geometry_msgs
geometry_msgs
nav_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp tf2 tf2_ros tf2_geometry_msgs geometry_msgs nav_msgs
)
include_directories(
${catkin_INCLUDE_DIRS}
)
add_executable(static_robot_pose src/static_robot_pose.cpp)
add_executable(odom_robot_pose src/odom_robot_pose.cpp)
add_dependencies(static_robot_pose ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(odom_robot_pose ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(static_robot_pose ${catkin_LIBRARIES})
target_link_libraries(odom_robot_pose ${catkin_LIBRARIES})
install(TARGETS static_robot_pose odom_robot_pose
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )