-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
95 lines (80 loc) · 2.56 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
cmake_minimum_required(VERSION 2.8.3)
project(transparent_object_reconstruction)
find_package(catkin REQUIRED COMPONENTS
dynamic_reconfigure
pcl_conversions
pcl_msgs
pcl_ros
roscpp
rospy
sensor_msgs
std_msgs
visualization_msgs
shape_msgs
message_generation
ecto
ecto_ros
ecto_pcl
tf
tf_conversions
object_recognition_msgs
bag_loop_check
)
generate_dynamic_reconfigure_options(
cfg/CreateRays.cfg
cfg/Intersec.cfg
)
add_message_files(
FILES
Holes.msg
ViewpointInterval.msg
VoxelViewPointIntervals.msg
VoxelLabels.msg
VoxelizedTransObjInfo.msg
)
add_service_files(
FILES
CombineClouds.srv
CloudReset.srv
HoleIntersectorReset.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
pcl_msgs
object_recognition_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES transparent_object_reconstruction
# CATKIN_DEPENDS dynamic_reconfigure pcl_conversions pcl_msgs pcl_ros roscpp rospy sensor_msgs std_msgs visualization_msgs shape_msgs object_recognition_msgs
# DEPENDS system_lib
)
add_compile_options("-std=c++11")
#add_compile_options("-O0" "-g")
include_directories(include ${catkin_INCLUDE_DIRS})
# Libraries
add_library(tools src/tools.cpp)
target_link_libraries(tools ${catkin_LIBRARIES})
add_dependencies(tools ${PROJECT_NAME}_generate_messages_cpp)
# Executables
add_executable(HoleVisualizer src/HoleVisualizer.cpp)
target_link_libraries(HoleVisualizer ${catkin_LIBRARIES} tools)
add_dependencies(HoleVisualizer transparent_object_reconstruction_gencfg ${PROJECT_NAME}_generate_messages_cpp)
add_executable(pose2quatTrans src/pose2quatTrans.cpp)
target_link_libraries(pose2quatTrans ${catkin_LIBRARIES})
add_executable(HoleIntersector src/HoleIntersector.cpp)
target_link_libraries(HoleIntersector ${catkin_LIBRARIES} tools)
add_dependencies(HoleIntersector transparent_object_reconstruction_gencfg ${PROJECT_NAME}_generate_messages_cpp)
add_executable(ExTraReconstructedObject src/ExTraReconstructedObject.cpp)
target_link_libraries(ExTraReconstructedObject ${catkin_LIBRARIES} tools)
add_dependencies(ExTraReconstructedObject transparent_object_reconstruction_gencfg)
# Generate ecto cells
pubsub_gen_wrap(${PROJECT_NAME} DESTINATION ${PROJECT_NAME} INSTALL)
add_dependencies(ecto_${PROJECT_NAME}_ectomodule ${PROJECT_NAME}_generate_messages_cpp)
ectomodule(hole_detection DESTINATION ${PROJECT_NAME} INSTALL
src/ecto/HoleDetector.cpp
src/ecto/module.cpp)
link_ecto(hole_detection ${catkin_LIBRARIES} ${PCL_LIBRARIES} tools)
add_dependencies(hole_detection_ectomodule ${PROJECT_NAME}_generate_messages_cpp)