-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (37 loc) · 1.21 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
cmake_minimum_required(VERSION 2.8.3)
project(rtt_boost_date_time_msgs)
## find catkin and catkin dependencies
find_package(catkin REQUIRED COMPONENTS rtt_roscomm boost_date_time_msgs)
catkin_destinations()
## Build options
if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_BUILD_TYPE MinSizeRel)
endif()
## Build typekit and transport plugins
include_directories(
include
include/orocos
${catkin_INCLUDE_DIRS}
)
# Build typekit plugin
orocos_typekit(rtt-boost_date_time_msgs-ros-transport
src/ros_boost_date_time_msgs_transport.cpp
)
target_link_libraries(rtt-boost_date_time_msgs-ros-transport ${catkin_LIBRARIES})
# Add an explicit dependency between the typekits and message files
# TODO: Add deps for all msg dependencies
if(boost_date_time_msgs_EXPORTED_TARGETS)
if(NOT boost_date_time_msgs STREQUAL ${PROJECT_NAME})
add_dependencies(rtt-boost_date_time_msgs-ros-transport ${boost_date_time_msgs_EXPORTED_TARGETS})
endif()
endif()
## Install headers
install(
DIRECTORY include/orocos
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
)
## Generate Orocos package
orocos_generate_package(
DEPENDS boost_date_time_msgs
DEPENDS_TARGETS rtt_roscomm boost_date_time_typekit
)