-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCMakeLists.txt
101 lines (75 loc) · 2.87 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
cmake_minimum_required(VERSION 2.8.3)
project(charuco_detector)
#######################################################################################################################
## flags
#######################################################################################################################
set(${PROJECT_NAME}_CATKIN_COMPONENTS
cv_bridge
geometry_msgs
image_transport
rosconsole
roscpp
rostime
sensor_msgs
tf2
tf2_ros
)
#######################################################################################################################
## packages
#######################################################################################################################
find_package(catkin REQUIRED COMPONENTS ${${PROJECT_NAME}_CATKIN_COMPONENTS})
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
#######################################################################################################################
## catkin specific configuration
#######################################################################################################################
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
charuco_detector
CATKIN_DEPENDS
${${PROJECT_NAME}_CATKIN_COMPONENTS}
DEPENDS
OpenCV
EIGEN3
)
#######################################################################################################################
## build
#######################################################################################################################
add_definitions(-std=c++11)
#==============================================================================
# includes
#==============================================================================
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
#==============================================================================
# libraries
#==============================================================================
add_library(charuco_detector
src/charuco_detector.cpp
)
#==============================================================================
# executables
#==============================================================================
add_executable(charuco_detector_node
src/charuco_detector_node.cpp
)
#==============================================================================
# library link
#==============================================================================
target_link_libraries(charuco_detector
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
#==============================================================================
# executables link
#==============================================================================
target_link_libraries(charuco_detector_node
charuco_detector
${catkin_LIBRARIES}
)