-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (41 loc) · 1.12 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
find_package(catkin REQUIRED COMPONENTS
roscpp
image_transport
cv_bridge
stereo_msgs
sensor_msgs
# and any other ROS 1 packages
)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${CUDA_INCLUDE_DIRS}
)
add_library(sgm_gpu_lib
src/costs.cu
src/hamming_cost.cu
src/left_right_consistency.cu
src/median_filter.cu
src/sgm_gpu.cu
)
target_link_libraries(sgm_gpu_lib ${OpenCV_LIBS} ${CUDA_LIBRARIES})
add_executable(sgm_gpu_node src/sgm_gpu_node.cpp src/sgm_gpu_node_main.cpp)
target_link_libraries(sgm_gpu_node sgm_gpu_lib ${OpenCV_LIBS} ${CUDA_LIBRARIES} ${catkin_LIBRARIES})
install(TARGETS sgm_gpu_node sgm_gpu_lib
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(DIRECTORY include/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(PROGRAMS
scripts/image_publisher.py
scripts/depth_image.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)