-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (31 loc) · 1006 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(zed_open_capture_ros)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
sensor_msgs
std_msgs
)
list(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake")
find_package(OpenCV)
find_package(Boost REQUIRED)
find_package(HIDAPI REQUIRED)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
${HIDAPI_INCLUDE_DIRS}
)
add_executable(talker src/talker.cpp)
target_link_libraries(talker ${catkin_LIBRARIES})
add_executable(zed_node
src/zed_open_capture_node.cpp
src/zed_open_capture_wrapper.cpp
src/videocapture.cpp
src/sensorcapture.cpp
)
target_compile_definitions(zed_node PUBLIC VIDEO_MOD_AVAILABLE)
target_compile_definitions(zed_node PUBLIC SENSORS_MOD_AVAILABLE)
target_link_libraries(zed_node
${catkin_LIBRARIES} ${OpenCV_LIBS} ${Boost_LIBRARIES} ${HIDAPI_LIBRARIES})