-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
119 lines (100 loc) · 2.47 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
cmake_minimum_required(VERSION 2.8.3)
project(tabletop_pointcloud_segmentation_ros)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
rospy
sensor_msgs
pcl_ros
ros_perception_msgs
message_filters
cv_bridge
image_geometry
)
#find_package(Boost REQUIRED
# message_filters
#)
find_package(PCL 1.7 REQUIRED)
find_package(OpenCV REQUIRED)
generate_dynamic_reconfigure_options(
ros/config/PlaneSegmentation.cfg
)
catkin_package(
INCLUDE_DIRS
ros/include
LIBRARIES
plane_segmentation
)
include_directories(
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
ros/include
common/include
)
add_definitions(-fpermissive)
### LIBRARIES ####################################################
#add_library(bounding_box
# common/src/bounding_box.cpp
#)
#add_dependencies(bounding_box
# ${PROJECT_NAME}_gencpp
# ${catkin_EXPORTED_TARGETS}
#)
#target_link_libraries(bounding_box
# ${PCL_LIBRARIES}
# ${catkin_LIBRARIES}
# ${OpenCV_LIBRARIES}
#)
# plane segmentation
#add_library(plane_segmentation
# common/src/bounding_box.cpp
# src/plane_segmentation.cpp
#)
#add_dependencies(plane_segmentation
# ${PROJECT_NAME}_gencpp
# ${catkin_EXPORTED_TARGETS}
#)
#target_link_libraries(plane_segmentation
# ${PCL_LIBRARIES}
# ${catkin_LIBRARIES}
# ${OpenCV_LIBRARIES}
#)
### EXECUTABLES ####################################################
add_executable(table_top_segmentation
common/src/bounding_box.cpp
ros/src/plane_segmentation.cc
ros/src/table_top_segmentation_ros.cpp
)
add_dependencies(table_top_segmentation
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_gencfg
)
target_link_libraries(table_top_segmentation
${catkin_LIBRARIES}
${Boost_INCLUDE_DIRS}
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
)
### INSTALLS
install(DIRECTORY common/include/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY config/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)