-
Notifications
You must be signed in to change notification settings - Fork 56
/
CMakeLists.txt
31 lines (24 loc) · 984 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(rtt_tf)
find_package(catkin REQUIRED COMPONENTS tf rtt_ros rtt_roscomm tf2)
ros_generate_rtt_typekit(tf)
include_directories(${catkin_INCLUDE_DIRS})
orocos_component(rtt_tf rtt_tf-component.cpp)
target_link_libraries(rtt_tf ${catkin_LIBRARIES})
orocos_install_headers( rtt_tf-component.hpp )
orocos_install_headers(include/rtt_tf/tf_interface.h)
orocos_generate_package(
INCLUDE_DIRS include
DEPENDS tf tf2
DEPENDS_TARGETS rtt_roscomm rtt_geometry_msgs rtt_tf2_msgs
)
# Tests
if(CATKIN_ENABLE_TESTING)
orocos_use_package(ocl-taskbrowser REQUIRED)
orocos_use_package(ocl-deployment REQUIRED)
add_definitions(-DRTT_COMPONENT)
orocos_executable(broadcaster_test tests/broadcaster_test.cpp)
target_link_libraries(broadcaster_test ${catkin_LIBRARIES} ${USE_OROCOS_LIBRARIES})
orocos_executable(lookup_test tests/lookup_test.cpp)
target_link_libraries(lookup_test ${catkin_LIBRARIES} ${USE_OROCOS_LIBRARIES})
endif()