-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
36 lines (30 loc) · 1.1 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
cmake_minimum_required(VERSION 2.8.3)
project(ps4eye_tegra)
find_package(catkin REQUIRED
COMPONENTS roscpp nodelet
cv_bridge image_geometry image_proc image_transport
message_filters sensor_msgs stereo_msgs
camera_calibration_parsers camera_info_manager)
find_package(Boost REQUIRED COMPONENTS thread)
find_package(OpenCV REQUIRED)
if (OpenCV_VERSION VERSION_GREATER "3.0.0")
add_definitions("-DOPENCV3=1")
endif()
find_package(PkgConfig)
pkg_check_modules(YAML_CPP yaml-cpp)
if(${YAML_CPP_VERSION} VERSION_GREATER 0.5)
add_definitions(-DHAVE_NEW_YAMLCPP)
endif()
catkin_package(
INCLUDE_DIRS include
LIBRARIES ps4eye_proc
CATKIN_DEPENDS roscpp nodelet
cv_bridge image_geometry image_proc image_transport
message_filters sensor_msgs stereo_msgs
camera_calibration_parsers camera_info_manager
DEPENDS OpenCV
)
include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS})
link_directories(${YAML_CPP_LIBRARY_DIRS})
add_library(ps4eye_proc src/ps4eye_proc.cpp)
target_link_libraries(ps4eye_proc ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${YAML_CPP_LIBRARIES})