-
Notifications
You must be signed in to change notification settings - Fork 56
/
CMakeLists.txt
60 lines (49 loc) · 1.62 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
cmake_minimum_required(VERSION 2.8.3)
project(rtt_ros)
find_package(catkin REQUIRED COMPONENTS rostime rospack roslib)
find_package(LibXml2 REQUIRED)
find_package(OROCOS-RTT REQUIRED)
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)
catkin_package(
CFG_EXTRAS rtt_ros-extras.cmake
)
include_directories(include ${catkin_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR})
add_definitions(-DRTT_COMPONENT)
orocos_library(rtt_ros src/rtt_ros.cpp)
target_link_libraries(rtt_ros
${catkin_LIBRARIES}
${LIBXML2_LIBRARIES}
)
orocos_service(rtt_ros_service src/rtt_ros_service.cpp)
target_link_libraries(rtt_ros_service
rtt_ros
${catkin_LIBRARIES}
)
# ROS Primitives typekit
set(CMAKE_BUILD_TYPE MinSizeRel)
orocos_typekit(rtt-ros-primitives-typekit
src/orocos/types/ros_primitives_typekit_plugin.cpp
src/orocos/types/ros_time_type.cpp
src/orocos/types/ros_uint8_type.cpp
src/orocos/types/ros_int8_type.cpp
src/orocos/types/ros_uint16_type.cpp
src/orocos/types/ros_int16_type.cpp
src/orocos/types/ros_uint32_type.cpp
src/orocos/types/ros_int32_type.cpp
src/orocos/types/ros_uint64_type.cpp
src/orocos/types/ros_int64_type.cpp
src/orocos/types/ros_float32_type.cpp
src/orocos/types/ros_float64_type.cpp
src/orocos/types/ros_string_type.cpp)
target_link_libraries(rtt-ros-primitives-typekit ${catkin_LIBRARIES})
orocos_generate_package(
INCLUDE_DIRS include
DEPENDS rostime
)
install(DIRECTORY scripts/
USE_SOURCE_PERMISSIONS
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
orocos_install_headers(
DIRECTORY include/${PROJECT_NAME}/
)