-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
44 lines (32 loc) · 960 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
cmake_minimum_required(VERSION 2.8.3)
project(ocam_ros)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
sensor_msgs
image_transport
camera_info_manager
cv_bridge
)
find_package(Threads)
find_package(OpenCV REQUIRED)
find_package(udev)
find_package(v4l2)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -fms-extensions -O3 -Wl,--no-as-needed")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -fms-extensions -O3 -Wl,--no-as-needed")
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp sensor_msgs camera_info_manager image_transport cv_bridge
)
include_directories(include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(ocam_ros_node
src/ocam_ros.cpp
src/withrobot_camera.cpp
src/withrobot_utility.cpp
include/withrobot_camera.hpp
include/withrobot_utility.hpp
)
target_link_libraries(ocam_ros_node ${catkin_LIBRARIES} ${OpenCV_LIBS} udev v4l2 pthread)