-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
165 lines (128 loc) · 4.32 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
cmake_minimum_required(VERSION 2.8.3)
project(pcl)
set(CMAKE_CXX_STANDARD 14)
###################################
find_package(
catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
pcl_conversions
pcl_ros
#nodelet
message_generation
image_transport
image_geometry
cv_bridge
)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
# Print some message showing some of them
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " libraries: ${OpenCV_LIBS}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
############################ service
add_service_files(FILES ComputeRMSE.srv)
generate_messages(DEPENDENCIES geometry_msgs std_msgs)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES pointcloud_localize
# CATKIN_DEPENDS other_catkin_pkg
# DEPENDS system_lib
)
############################ include
include_directories(
${PCL_INCLUDE_DIRS}
include
lib
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
############################ libraries
add_library(CloudDetection src/CloudDetection.cpp)
target_link_libraries(CloudDetection ${catkin_LIBRARIES})
#add_dependencies(republish_cxx ${{PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_library(CascadeDetection src/CascadeDetection.cpp)
target_link_libraries(CascadeDetection ${catkin_LIBRARIES})
add_library(KalmanFilter src/KalmanFilter.cpp)
target_link_libraries(KalmanFilter ${catkin_LIBRARIES})
add_library(PointcloudFilter src/PointcloudFilter.cpp)
target_link_libraries(PointcloudFilter ${catkin_LIBRARIES})
add_library(recognition src/recognition.cpp)
target_link_libraries(recognition ${catkin_LIBRARIES})
add_library(Utility src/Utility.cpp)
target_link_libraries(Utility ${catkin_LIBRARIES})
############################ executables
add_executable(cloud_detection_node
src/cloud_detection_node.cpp
)
target_link_libraries(cloud_detection_node
${PCL_LIBRARIES}
${catkin_LIBRARIES}
CloudDetection
KalmanFilter
PointcloudFilter
recognition
Utility
)
add_executable(cascade_detection_node
src/cascade_detection_node.cpp
)
target_link_libraries(cascade_detection_node
PRIVATE ${OpenCV_LIBS}
CascadeDetection
Utility
)
add_executable(pub_cmd src/pub_cmd.cpp)
target_link_libraries(pub_cmd ${catkin_LIBRARIES})
############################ other executables
add_executable(region_growing_rgb_segmentation
src/region_growing_rgb_segmentation.cpp
)
target_link_libraries(region_growing_rgb_segmentation
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
add_executable(eigenTest
src/eigenTest.cpp
)
target_link_libraries(eigenTest
${catkin_LIBRARIES}
)
add_executable(bluerov_detect
src/bluerov_detect.cpp
)
target_link_libraries(bluerov_detect
PRIVATE ${OpenCV_LIBS}
)
add_executable(bluerov_nestdetect
src/bluerov_nestdetect.cpp
)
target_link_libraries(bluerov_nestdetect
PRIVATE ${OpenCV_LIBS}
)
#add_executable(recognition_node src/recognition_node.cpp)
#target_link_libraries(recognition_node ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(tracking src/tracking.cpp)
#target_link_libraries(tracking ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(tracking_sample src/tracking_sample.cpp)
#target_link_libraries(tracking_sample ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(correspondence_grouping src/correspondence_grouping.cpp)
#target_link_libraries(correspondence_grouping ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(global_hypothesis_verification src/global_hypothesis_verification.cpp)
#target_link_libraries(global_hypothesis_verification ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(cloud_centroid src/cloud_centroid.cpp)
#target_link_libraries(cloud_centroid ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(rangeimage src/rangeimage.cpp)
#target_link_libraries(rangeimage ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(icp src/icp.cpp)
#target_link_libraries(icp ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(icp_pose src/icp_pose.cpp)
#target_link_libraries(icp_pose ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_executable(republish src/republish.cpp)
#target_link_libraries(republish ${PCL_LIBRARIES} ${catkin_LIBRARIES})
#add_library(pcl_nodelet src/pcl_nodelet.cpp)
#target_link_libraries(pcl_nodelet ${catkin_EXPORTED_LIBRARIES})