-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
58 lines (47 loc) · 1.18 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
cmake_minimum_required(VERSION 2.8.3)
project(rtt_pcl)
## Find PCL
find_package(PCL REQUIRED)
## Find Orocos RTT
find_package(OROCOS-RTT REQUIRED)
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)
## Set default build type to MinSizeRel
if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_BUILD_TYPE MinSizeRel)
endif()
###################################
## catkin specific configuration ##
###################################
if(catkin_FOUND)
catkin_package(
DEPENDS PCL
)
endif()
###########
## Build ##
###########
## Specify additional locations of header files
include_directories(
include/orocos
${PCL_INCLUDE_DIRS}
)
## Orocos typekit plugin
orocos_typekit(rtt_pcl-typekit
src/typekit.cpp
src/point_xyz.cpp
src/point_xyzrgb.cpp
src/point_xyzrgbnormal.cpp
)
target_link_libraries(rtt_pcl-typekit ${PCL_LIBRARIES})
#############
## Install ##
#############
# Note: The typekit library is already installed by the orocos_typekit() macro.
## Install headers
orocos_install_headers(
DIRECTORY include/orocos/${PROJECT_NAME}/
)
## Generate Orocos package
orocos_generate_package(
DEPENDS pcl_common-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}
)