-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
79 lines (68 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
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 2.8.3)
project(sensor_data_transport_wrapper)
add_compile_options(-std=c++11
-O3
# -march=native
)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
image_transport
cv_bridge
sensor_msgs
pcl_ros
tf2
tf2_ros
realsense_camera_wrapper
)
find_package(PCL 1.7 REQUIRED)
find_package(realsense2 REQUIRED COMPONENTS)
find_package(OpenCV REQUIRED COMPONENTS)
find_package(Boost REQUIRED COMPONENTS)
# include realsence_camera_wraper library
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
realsense_camera_wrapper
CATKIN_DEPENDS
realsense_camera_wrapper
)
## Specify additional locations of header files
include_directories(
include/realsense_camera_wrapper
include
${PCL_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
## Declare a C++ executable
## With catkin_make all packages are built within a single CMake context
## The recommended prefix ensures that target names across packages don't collide
add_executable(pointcloud_transport_wrapper_node_test
src/pointcloud_transport_wrapper_node_test.cpp
)
## Specify libraries to link a library or executable target against
target_link_libraries(pointcloud_transport_wrapper_node_test
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${Boost_LIBRARIES}
zmq
)
add_executable(camera_ros_zmq_sub_example
src/camera_ros_zmq_sub_example.cpp
)
target_link_libraries(camera_ros_zmq_sub_example
zmq
${PCL_LIBRARIES}
)
add_executable(pointcloud_transport_wrapper
src/pointcloud_transport_wrapper.cpp
)
target_link_libraries(pointcloud_transport_wrapper
zmq
${PCL_LIBRARIES}
${catkin_LIBRARIES}
)