-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
71 lines (58 loc) · 1.71 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
cmake_minimum_required(VERSION 2.8.3)
project(depth_calibration)
find_package(catkin REQUIRED
rospy
roscpp
std_msgs
sensor_msgs
pcl_ros
pcl_conversions
cv_bridge
image_geometry
nodelet
)
find_package(Boost REQUIRED COMPONENTS thread)
find_package(OpenCV REQUIRED)
catkin_package(
DEPENDS
OpenCV
CATKIN_DEPENDS
rospy
roscpp
std_msgs
sensor_msgs
pcl_ros
pcl_conversions
cv_bridge
image_geometry
)
include_directories(include ${PCL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
add_library(${PROJECT_NAME}
src/depth_adjuster.cpp
)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
install(FILES nodelet_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
add_executable(depth_calibrator src/depth_calibrator.cpp)
target_link_libraries(depth_calibrator ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(center_plane_extractor src/center_plane_extractor.cpp)
target_link_libraries(center_plane_extractor ${catkin_LIBRARIES})
##############################################################################
# Installs
##############################################################################
install(TARGETS ${PROJECT_NAME}
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
catkin_install_python(PROGRAMS
scripts/depth_calibration.py
scripts/extrinsic_plane_calibration.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(PROGRAMS
scripts/depth_calibration.py
scripts/extrinsic_plane_calibration.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})