forked from RobotWebTools/tf2_web_republisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (27 loc) · 1.4 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
cmake_minimum_required(VERSION 2.8.3)
project(tf2_web_republisher)
find_package(catkin REQUIRED COMPONENTS tf tf2_ros geometry_msgs actionlib actionlib_msgs roscpp)
find_package(Boost REQUIRED COMPONENTS thread )
add_action_files(DIRECTORY action FILES TFSubscription.action)
generate_messages(
DEPENDENCIES actionlib_msgs std_msgs geometry_msgs roscpp
)
catkin_package(
CATKIN_DEPENDS tf tf2_ros geometry_msgs actionlib actionlib_msgs
)
include_directories(include)
include_directories(${catkin_INCLUDE_DIRS})
add_executable(${PROJECT_NAME} src/tf_web_republisher.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencpp)
add_executable(${PROJECT_NAME}_test_subscription tests/test_subscription.cpp)
target_link_libraries(${PROJECT_NAME}_test_subscription ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_dependencies(${PROJECT_NAME}_test_subscription ${PROJECT_NAME}_gencpp)
add_executable(${PROJECT_NAME}_test_subscription2 tests/test_subscription2.cpp)
target_link_libraries(${PROJECT_NAME}_test_subscription2 ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_dependencies(${PROJECT_NAME}_test_subscription2 ${PROJECT_NAME}_gencpp)
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)