-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
79 lines (60 loc) · 1.51 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
cmake_minimum_required(VERSION 3.5)
project(stereo_reconstruction_cpp)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(ament_index_cpp REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(cv_bridge REQUIRED)
find_package(OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories(
./
/usr/include/opencv4
)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)
include_directories(include)
set(THIS_PACKAGE_INCLUDE_DEPENDS
ament_cmake
ament_index_cpp
rclcpp
sensor_msgs
cv_bridge
)
add_executable(stereo_reconstruction
src/stereo_reconstruction_node.cpp
src/stereo_reconstruction.cpp)
ament_target_dependencies(stereo_reconstruction
${THIS_PACKAGE_INCLUDE_DEPENDS})
target_link_libraries( stereo_reconstruction
${OpenCV_LIBS}
)
install(TARGETS stereo_reconstruction
EXPORT export_${PROJECT_NAME}
DESTINATION lib/${PROJECT_NAME})
# Install calibration files.
install(DIRECTORY
calibration
DESTINATION share/${PROJECT_NAME}/
)
# Install params files.
install(DIRECTORY
params
DESTINATION share/${PROJECT_NAME}/
)
# Install launch files.
install(DIRECTORY
launch
DESTINATION share/${PROJECT_NAME}/
)
# Install rviz files.
install(DIRECTORY
rviz
DESTINATION share/${PROJECT_NAME}/
)
ament_package()