-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
190 lines (170 loc) · 3.37 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
cmake_minimum_required(VERSION 3.14)
project(vlma)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
endif()
set(CMAKE_BUILD_TYPE "release")
find_package(Eigen3 3.3.7 REQUIRED)
find_package(PCL REQUIRED)
find_package(OpenCV 4.2 REQUIRED COMPONENTS)
find_package(
beam REQUIRED
COMPONENTS
calibration
cv
depth
utils
matching
mapping
filtering
optimization
)
set(catkin_build_depends
tf2
rosbag
roscpp
sensor_msgs
geometry_msgs
)
find_package(
catkin REQUIRED
COMPONENTS
${catkin_build_depends}
)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
${PROJECT_NAME}
CATKIN_DEPENDS
${catkin_build_depends}
DEPENDS
Boost
CERES
EIGEN3
PCL
)
###########
## Build ##
###########
add_library(
${PROJECT_NAME}
src/pose_lookup.cpp
)
include_directories(
include
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_dependencies(${PROJECT_NAME}
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}
PUBLIC
include
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${PCL_LIBRARY_DIRS}
)
target_link_libraries(
${PROJECT_NAME}
${catkin_LIBRARIES}
beam::utils
beam::matching
beam::filtering
beam::mapping
beam::calibration
beam::cv
beam::depth
beam::optimization
)
#################
## Executables ##
#################
add_executable(${PROJECT_NAME}_main
src/main.cpp
)
add_dependencies(${PROJECT_NAME}_main
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_main
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_main
${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_bag_to_traj
src/bag_to_traj.cpp
)
add_dependencies(${PROJECT_NAME}_bag_to_traj
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_bag_to_traj
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_bag_to_traj
${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_con_slam_to_bag
src/con_slam_to_bag.cpp
)
add_dependencies(${PROJECT_NAME}_con_slam_to_bag
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_con_slam_to_bag
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_con_slam_to_bag
${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_aloam_to_json
src/aloam_to_json.cpp
)
add_dependencies(${PROJECT_NAME}_aloam_to_json
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_aloam_to_json
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_aloam_to_json
${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_highlight_changes
src/highlight_changes.cpp
)
add_dependencies(${PROJECT_NAME}_highlight_changes
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_highlight_changes
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_highlight_changes
${PROJECT_NAME}
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_average_roughness
src/average_roughness.cpp
)
add_dependencies(${PROJECT_NAME}_average_roughness
${catkin_EXPORTED_TARGETS}
)
target_include_directories(${PROJECT_NAME}_average_roughness
PUBLIC
${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}_average_roughness
${PROJECT_NAME}
${catkin_LIBRARIES}
)