-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
84 lines (75 loc) · 2.13 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
79
80
81
82
83
84
cmake_minimum_required(VERSION 2.8.3)
project(flir_gige)
add_definitions(-std=c++11 -Wall -Wno-unknown-pragmas)
# Set library paths for pleora ebus sdk on 64-bit linux
# For more information, see cmake/Findebus.cmake
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# Make CMake aware of the cmake folder for local FindXXX scripts.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Ebus REQUIRED)
else()
message(FATAL_ERROR "This package only supports 64-bit linux")
endif()
find_package(catkin REQUIRED COMPONENTS
roscpp nodelet camera_base cv_bridge
)
find_package(OpenCV)
# Dynamic reconfigure option, as to be placed right before catkin_package
generate_dynamic_reconfigure_options(
cfg/FlirGigeDyn.cfg
cfg/ThermalProcDyn.cfg
cfg/CalibProcDyn.cfg
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES flir
# CATKIN_DEPENDS roscpp sensor_msgs
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Ebus_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
# library
add_library(${PROJECT_NAME}
src/flir_gige/flir_gige.cpp
src/flir_gige/flir_gige_ros.cpp
src/flir_gige/flir_gige_node.cpp
src/flir_gige/flir_gige_nodelet.cpp
src/thermal_proc/thermal_proc_node.cpp
src/thermal_proc/thermal_proc_nodelet.cpp
src/calib_proc/calib_proc_node.cpp
)
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${Ebus_LIBRARIES}
)
# node
add_executable(${PROJECT_NAME}_node
src/flir_gige/flir_gige_main.cpp
)
target_link_libraries(${PROJECT_NAME}_node
${PROJECT_NAME}
)
add_executable(thermal_proc_node
src/thermal_proc/thermal_proc_main.cpp
)
target_link_libraries(thermal_proc_node
${PROJECT_NAME}
)
add_executable(calib_proc_node
src/calib_proc/calib_proc_main.cpp
)
target_link_libraries(calib_proc_node
${PROJECT_NAME}
)
## Add cmake target dependencies of the executable/library
add_dependencies(${PROJECT_NAME}
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_gencfg
${PROJECT_NAME}_gencpp
${${PROJECT_NAME}_EXPORTED_TARGETS}
)