forked from wavelab/ximea_camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (42 loc) · 964 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
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 2.8.3)
project(ximea_camera)
set(XIMEA_INCLUDE_PATH /usr/include)
set(XIMEA_LIBRARY_PATH /usr/lib)
set(XIMEA_LIBRARY m3api)
find_package(catkin REQUIRED COMPONENTS
roscpp
image_transport
sensor_msgs
camera_info_manager
roslint
)
find_package(Boost REQUIRED COMPONENTS system thread)
catkin_package(
LIBRARIES ximea_camera
CATKIN_DEPENDS roscpp
DEPENDS system_lib TinyXML
DEPENDS boost
)
include_directories(include)
include_directories(
${XIMEA_INCLUDE_PATH}
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
set(XIMEA_SRC
src/ximea_driver.cpp
src/ximea_ros_driver.cpp
src/ximea_ros_cluster.cpp
src/ximea.cpp
)
add_executable(ximea_camera_node ${XIMEA_SRC})
target_link_libraries(
ximea_camera_node
${XIMEA_LIBRARY}
${catkin_LIBRARIES}
yaml-cpp
${Boost_LIBRARIES}
)
# ROSLINT
set(ROSLINT_CPP_OPTS "--filter=-whitespace/line_length,-readability/todo" )
roslint_cpp()