-
Notifications
You must be signed in to change notification settings - Fork 56
/
CMakeLists.txt
55 lines (42 loc) · 1.57 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
cmake_minimum_required(VERSION 2.8.3)
project(rtt_roscomm)
find_package(catkin REQUIRED COMPONENTS rtt_ros roscpp)
catkin_package(
CATKIN_DEPENDS rtt_ros roscpp
CFG_EXTRAS GenerateRTTROSCommPackage.cmake
)
include_directories(
include
${catkin_INCLUDE_DIRS})
# ROS Message / Topic Support
orocos_library(rtt_rostopic
src/rtt_rostopic.cpp)
target_link_libraries(rtt_rostopic ${catkin_LIBRARIES})
orocos_service(rtt_rostopic_service
src/rtt_rostopic_service.cpp
src/rtt_rostopic_ros_publish_activity.cpp)
target_link_libraries(rtt_rostopic_service rtt_rostopic ${catkin_LIBRARIES})
# ROS Service Support
orocos_service(rtt_rosservice_registry
src/rtt_rosservice_registry_service.cpp)
orocos_service(rtt_rosservice
src/rtt_rosservice_service.cpp)
target_link_libraries(rtt_rosservice rtt_rosservice_registry ${catkin_LIBRARIES})
# Generate install targets and pkg-config files
orocos_generate_package(
INCLUDE_DIRS include
DEPENDS roscpp
)
install(PROGRAMS
scripts/create_rtt_msgs
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(
DIRECTORY include/
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/orocos
)
# Install create_boost_header.py
catkin_install_python(PROGRAMS scripts/create_boost_header.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# Install template files
install(DIRECTORY src/templates DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/src)
# This one will only be used by create_rtt_msgs with `rospack find rtt_roscomm` => no devel-space installation
install(DIRECTORY rtt_roscomm_pkg_template DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})