-
Notifications
You must be signed in to change notification settings - Fork 41
/
CMakeLists.txt
467 lines (392 loc) · 16.1 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
cmake_minimum_required(VERSION 2.8)
#cmake_minimum_required(VERSION 3.16...3.27) # issues with opencv import
project(slamplay LANGUAGES CXX)
#====================================
# options
set(CPP_STANDARD_VERSION "20" CACHE STRING "Desired C++ standard version") # we need c++17 since nvcc does not support c++20 (probably we can try mixing standards and let nvcc use c++17 ... not sure about the result)
set(OPENCV_VERSION "4" CACHE STRING "Desired OpenCV version") # this is the first target version that is searched for
set(SET_RPATH ON CACHE BOOL "Set RPATH instead of the default RUNPATH") # for solving the linking issue with g2o binaries (see the related node in the compiler options section)
set(BUILD_WITH_MARCH_NATIVE ON CACHE BOOL "Build with \"-march native\"")
set(WITH_OPENMP ON CACHE BOOL "Add OpenMP support") # useful for PCL (since we use the macro PCL_NO_PRECOMPILE!)
set(WITH_TRACY_PROFILER OFF CACHE BOOL "Add Tracy profiler support.")
set(WITH_TENSORRT OFF CACHE BOOL "Add TensorRT support with DL features.")
set(TensorRT_DIR "${PROJECT_SOURCE_DIR}/thirdparty/TensorRT" CACHE STRING "Desired TensorRT path") # this is the first target version that is searched for
set(TENSORRTBUFFER_DIR "${PROJECT_SOURCE_DIR}/thirdparty/tensorrtbuffers" CACHE STRING "Desired tensorrtbuffers path")
set(WITH_TENSORFLOW OFF CACHE BOOL "Add Tensorflow support with DL features.")
set(TENSORFLOW_ROOT "$ENV{HOME}/.tensorflow" CACHE STRING "Desired Tensorflow path")
set(WITH_TORCH OFF CACHE BOOL "Add Torch support with DL features.")
set(Torch_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libtorch/share/cmake/Torch" CACHE STRING "Desired Torch path")
# NOTE: this is to remove the tons of cmake warning coming from importing ext packages
# see here: https://github.com/PointCloudLibrary/pcl/issues/3680
# when this is fixed, we can remove the following 3 lines.
if(NOT DEFINED CMAKE_SUPPRESS_DEVELOPER_WARNINGS)
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings")
endif()
#====================================
# c++ standard
set(CMAKE_CXX_STANDARD ${CPP_STANDARD_VERSION})
set(CMAKE_CXX_STANDARD_REQUIRED ON) # CMake will generate an error if it is unable to compile the code with a compiler that supports C++17.
#====================================
# compiler options
# Generate file compile_commands.json in our build folder: it contains the full command line to compile individual source files
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
#set(CMAKE_BUILD_TYPE Debug) # Uncomment this to force Debug build
if(CMAKE_BUILD_TYPE STREQUAL "Release")
# Release
set(MY_FLAGS "-Wall -Wextra -O3 -fPIC -DNDEBUG -Wno-unused-parameter -Wno-unused-function")
if(BUILD_WITH_MARCH_NATIVE)
set(MY_FLAGS "${MY_FLAGS} -march=native")
endif()
else()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "\n!Compiling in Debug mode!\n")
# Debug
set(MY_FLAGS "-Wall -O3 -g")
endif()
endif()
# Add OpenMP flags
if( WITH_OPENMP )
set(MY_FLAGS "${MY_FLAGS} -fopenmp")
endif()
# In order to set RPATH (instead of RUNPATH) for g2o and other libraries linking issue.
# ISSUE: g2o binaries link to system g2o (here /opt/ros/noetic/lib/libg2o_core.so) and crash (different version);
# we need to set LD_LIBRARY_PATH for correct linking
# https://stackoverflow.com/questions/47117443/dynamic-linking-with-rpath-not-working-under-ubuntu-17-10
if(SET_RPATH)
set(MY_FLAGS "${MY_FLAGS} -Wl,--disable-new-dtags")
endif()
# get and store all the active flags
set(MY_C_FLAGS "${CMAKE_C_FLAGS} ${MY_FLAGS}")
set(MY_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MY_FLAGS}")
# apply flags
set(CMAKE_C_FLAGS "${MY_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${MY_CXX_FLAGS}")
message(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
#====================================
# cmake macros
include(${PROJECT_SOURCE_DIR}/cmake/macros.cmake)
#====================================
# bin and lib destination
#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#====================================
# c++ macros
set(DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data" CACHE PATH "Where data live")
add_compile_definitions(DATA_DIR=${DATA_DIR})
#====================================
# packages
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
#list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/thirdparty/g2o/cmake_modules )
# rerun_sdk
# include(FetchContent)
# FetchContent_Declare(
# rerun_sdk
# GIT_REPOSITORY https://github.com/rerun-io/rerun.git
# GIT_TAG 0.14.1
# )
# FetchContent_MakeAvailable(rerun_sdk)
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/rerun/install/lib/cmake/rerun_sdk/)
set(Rerun_DIR ${PROJECT_SOURCE_DIR}/thirdparty/rerun/install/)
message(STATUS "set custom rerun folder: ${Rerun_DIR}")
find_package(rerun_sdk REQUIRED)
message(STATUS "rerun include: ${RERUN_LIBRARIES}")
# fmt
find_package(fmt REQUIRED)
# cholmod
find_package(Cholmod REQUIRED)
#find_package(SuiteSparse REQUIRED)
# csparse
find_package(CSparse REQUIRED)
message(STATUS "CSparse include: ${CSPARSE_INCLUDE_DIR}")
# eigen
find_package(Eigen3 3.1.0 REQUIRED)
message(STATUS "eigen include: ${EIGEN3_INCLUDE_DIR}")
# boost
find_package(Boost REQUIRED COMPONENTS thread system filesystem)
# pangolin
#set(Pangolin_DIR ${PROJECT_SOURCE_DIR}/thirdparty/pangolin/build/) # this seems to work in general
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/pangolin/install/lib/cmake/Pangolin/) # this does only work (after make install) if we set the RPATH!
set(Pangolin_DIR ${PROJECT_SOURCE_DIR}/thirdparty/pangolin/install/) # this does only work (after make install) if we set the RPATH!
message(STATUS "set custom pangolin folder: ${Pangolin_DIR}")
find_package(Pangolin REQUIRED)
message(STATUS "pangolin include: ${Pangolin_INCLUDE_DIRS}")
message(STATUS "pangolin libs: ${Pangolin_LIBRARIES}")
# sophus
# just including the headers (no build is needed)
set(Sophus_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/thirdparty/sophus)
message(STATUS "set custom sophus include folders: ${Sophus_INCLUDE_DIRS}")
# gtsam
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/gtsam/install/lib/cmake/GTSAM/)
set(GTSAM_DIR ${PROJECT_SOURCE_DIR}/thirdparty/gtsam/install/)
message(STATUS "set custom gtsam folder: ${GTSAM_DIR}")
find_package(GTSAM REQUIRED)
message(STATUS "gtsam include: ${GTSAM_INCLUDE_DIR}")
# g2o
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/g2o/install/lib/cmake/g2o/)
set(G2O_ROOT ${PROJECT_SOURCE_DIR}/thirdparty/g2o/install/)
#set(G2O_LIB_DIR ${PROJECT_SOURCE_DIR}/thirdparty/g2o/install/lib)
message(STATUS "set custom g2o root folder: ${G2O_ROOT}")
find_package(G2O REQUIRED)
message(STATUS "g2o include: ${G2O_INCLUDE_DIR}")
message(STATUS "g2o lid dir: ${G2O_LIB_DIR}")
message(STATUS "g2o libs: ${G2O_LIBS}")
# ceres
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/ceres/install/lib/cmake/Ceres/)
set(Ceres_DIR ${PROJECT_SOURCE_DIR}/thirdparty/ceres/install/)
message(STATUS "set custom ceres folder: ${Ceres_DIR}")
find_package(Ceres REQUIRED)
message(STATUS "ceres include: ${CERES_LIBRARIES}")
# pcl
find_package(PCL 1.8 REQUIRED)
add_definitions(-DPCL_NO_PRECOMPILE) # this is strictly required when we define a new pcl point type;
# NOTE: apparently it solves a crash problem with test_pointcloud_mapping.cpp; unfortunately, it increases the build time
add_definitions( ${PCL_DEFINITIONS} )
message(STATUS "PCL_DEFINITIONS: ${PCL_DEFINITIONS}")
# opencv
message(STATUS "Desired OpenCV version: ${OPENCV_VERSION}")
find_package(OpenCV ${OPENCV_VERSION} REQUIRED)
message(STATUS "found OpenCV version: ${OpenCV_VERSION}")
message(STATUS "OpenCV include: ${OpenCV_INCLUDE_DIRS}")
message(STATUS "OpenCV install path: ${OpenCV_INSTALL_PATH}")
message(STATUS "OpenCV libs: ${OpenCV_LIBS}")
include(CheckIncludeFileCXX)
set (CMAKE_REQUIRED_INCLUDES ${OpenCV_INCLUDE_DIRS})
check_include_file_cxx(opencv2/xfeatures2d.hpp HAVE_OPENCV_CONTRIB) # detect if we have opencv_contrib
if(HAVE_OPENCV_CONTRIB)
message(STATUS "opencv_contrib found!")
add_definitions(-DHAVE_OPENCV_CONTRIB)
endif()
# mahigui
set(MAHIGUI_DIR ${PROJECT_SOURCE_DIR}/thirdparty/mahigui/install/)
message(STATUS "set custom mahi-gui folder: ${MAHIGUI_DIR}")
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/mahigui/install/lib/cmake/mahi-gui/)
find_package(mahi-gui QUIET)
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/mahigui/install/lib/cmake/mahi-util/)
find_package(mahi-util QUIET)
# json
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/json/install/share/cmake/nlohmann_json/)
set(JSON_DIR ${PROJECT_SOURCE_DIR}/thirdparty/json/install/)
message(STATUS "set custom json folder: ${JSON_DIR}")
find_package(nlohmann_json REQUIRED)
#sesync
set(SESYNC_ROOT ${PROJECT_SOURCE_DIR}/thirdparty/sesync)
message(STATUS "set sesync root folder: ${SESYNC_ROOT}")
find_package(SESync REQUIRED)
#message(STATUS "sesync lid dir: ${SESYNC_LIB_DIR}")
message(STATUS "sesync libs: ${SESYNC_LIBS}")
# rosbag
find_package(BZip2 REQUIRED)
find_library(lz4_LIBRARIES REQUIRED NAMES lz4)
message(STATUS "lz4_LIBRARIES: ${lz4_LIBRARIES}")
set(ROSBAG_DIR ${PROJECT_SOURCE_DIR}/thirdparty/ros)
message(STATUS "set custom rosbag folder: ${ROSBAG_DIR}")
set(ROSBAG_INCLUDE_DIRS
${ROSBAG_DIR}/include
${ROSBAG_DIR}/console_bridge/include
${ROSBAG_DIR}/roscpp_core/cpp_common/include
${ROSBAG_DIR}/roscpp_core/rostime/include
${ROSBAG_DIR}/roscpp_core/roscpp_serialization/include
${ROSBAG_DIR}/roscpp_core/roscpp_traits/include
${ROSBAG_DIR}/ros_comm/utilities/roslz4/include
${ROSBAG_DIR}/ros_comm/tools/rosbag_storage/include
)
set(ROSBAG_LIBS ${ROSBAG_DIR}/lib/librosbag.a ${BZIP2_LIBRARIES} ${lz4_LIBRARIES})
message(STATUS "rosbag includes: ${ROSBAG_INCLUDE_DIRS}")
# DBoW2
set(DBOW2_DIR ${PROJECT_SOURCE_DIR}/thirdparty/dbow2/)
message(STATUS "set custom DBoW2 folder: ${DBOW2_DIR}")
set(DBoW2_INCLUDE_DIRS ${DBOW2_DIR}/)
set(DBoW2_LIB ${DBOW2_DIR}/lib/libDBoW2.so)
message(STATUS "DBoW2 includes: ${DBoW2_INCLUDE_DIRS}")
# DBoW3
set(CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/thirdparty/dbow3/install/lib/cmake/DBoW3)
set(DBOW3_DIR ${PROJECT_SOURCE_DIR}/thirdparty/dbow3/install/)
message(STATUS "set custom DBoW3 folder: ${DBOW3_DIR}")
find_package(DBoW3 REQUIRED)
message(STATUS "DBoW3 includes: ${DBoW3_INCLUDE_DIRS}")
# ibow-lcd
set(OBINDEX2_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/thirdparty/obindex2/lib/include/)
set(OBINDEX2_LIB_DIR ${PROJECT_SOURCE_DIR}/thirdparty/obindex2/lib/build/)
set(IBOW_LCD_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/thirdparty/ibow-lcd/include/)
set(IBOW_LCD_LIB_DIR ${PROJECT_SOURCE_DIR}/thirdparty/ibow-lcd/build/)
set(IBOW_LCD_LIBS lcdetector obindex2)
# octomap
set(CMAKE_PREFIX_PATH "/usr/lib/x86_64-linux-gnu/octomap/;/usr/lib/") # specify the system lib path otherwise you will find ROS octomap and it will bring in the ROS version of g2o (https://github.com/gaoxiang12/octomap_tutor/issues/3)
find_package(octomap REQUIRED)
message(STATUS "OCTOMAP_LIBRARIES: ${OCTOMAP_LIBRARIES}")
# glog
find_package(Glog REQUIRED)
# gtest
find_package(GTest REQUIRED)
# gflags
find_package(GFlags REQUIRED)
# yaml
find_package(yaml-cpp REQUIRED)
# TensorRT
if(WITH_TENSORRT)
add_definitions(-DUSE_TENSORRT)
find_package(CUDA REQUIRED)
message(STATUS "CUDA_VERSION_STRING: ${CUDA_VERSION_STRING}")
message(STATUS "CUDA_TOOLKIT_ROOT_DIR: ${CUDA_TOOLKIT_ROOT_DIR}")
message(STATUS "CUDA_INCLUDE_DIRS: ${CUDA_INCLUDE_DIRS}")
message(STATUS "CUDA_LIBRARIES: ${CUDA_LIBRARIES}")
message(STATUS "TensorRT_DIR: ${TensorRT_DIR}")
find_package(TensorRT REQUIRED)
# adjust for hosting tensorrtbuffers lib
set(TensorRT_INCLUDE_DIR ${TensorRT_INCLUDE_DIR} ${TENSORRTBUFFER_DIR}/include)
set(TensorRT_LIBRARIES ${TensorRT_LIBRARIES} ${TENSORRTBUFFER_DIR}/lib/libtensorrtbuffers.so)
message(STATUS "TensorRT_INCLUDE_DIR: ${TensorRT_INCLUDE_DIR}")
message(STATUS "TensorRT_LIBRARIES: ${TensorRT_LIBRARIES}")
endif()
# Tensorflow
if(WITH_TENSORFLOW)
ADD_DEFINITIONS(-DUSE_TENSORFLOW)
set(Tensorflow_Root ${TENSORFLOW_ROOT})
set(CMAKE_PREFIX_PATH ${CMAKE_MODULE_PATH} ${Tensorflow_Root}/lib/cmake/TensorflowCC/)
find_package(TensorflowCC REQUIRED)
# set(Tensorflow_INCLUDE_DIRS
# ${Tensorflow_Root}/include/tensorflow/bazel-bin/tensorflow/include
# ${Tensorflow_Root}/include/tensorflow/bazel-bin/tensorflow/include/src
# ${Tensorflow_Root}/include/tensorflow/bazel-bin/bin/tensorflow/include
# ${Tensorflow_Root}/include/tensorflow/bazel-bin/bin/tensorflow/include/src
# )
# set(Tensorflow_LIBS
# ${Tensorflow_Root}/lib/libtensorflow_cc.so
# ${Tensorflow_Root}/lib/libtensorflow_framework.so)
set(Tensorflow_LIBS TensorflowCC::TensorflowCC)
#find_package(Protobuf REQUIRED)
endif()
# Torch
if(WITH_TORCH)
ADD_DEFINITIONS(-DUSE_TORCH)
message(STATUS "Torch_DIR: ${Torch_DIR}")
find_package(Torch REQUIRED) # sudo apt install libtorch3-dev under ubuntu 20.04
message(STATUS "Torch_VERSION: ${Torch_VERSION}")
message(STATUS "TORCH_INCLUDE_DIRS: ${TORCH_INCLUDE_DIRS}")
endif()
# Tracy
if(WITH_TRACY_PROFILER)
set(TRACY_INSTALL_DIR ${PROJECT_SOURCE_DIR}/thirdparty/tracy/install/)
set(TRACY_INCLUDE_DIR ${TRACY_INSTALL_DIR}/include)
if(EXISTS "${TRACY_DIR}/libTracyClient.a")
message(STATUS "Found Tracy")
add_definitions(-DTRACY_ENABLE)
set(TRACY_LIBS ${TRACY_INSTALL_DIR}/lib/libTracyClient.a -ldl -lpthread)
endif()
endif()
#====================================
# includes
set(INCLUDE_DIRS
${PROJECT_SOURCE_DIR}/utils/
${PROJECT_SOURCE_DIR}/core/
)
# add all subdirs of utils
# subdirlist(SUBDIRS ${PROJECT_SOURCE_DIR}/utils) # macro from cmake/macros.cmake
# foreach(subdir ${SUBDIRS})
# set(INCLUDE_DIRS ${INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/utils/${subdir})
# endforeach()
set(EXT_INCLUDE_DIRS
${fmt_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${CHOLMOD_INCLUDE_DIR}
${Pangolin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${Sophus_INCLUDE_DIRS}
${GTSAM_INCLUDE_DIR}
${G2O_INCLUDE_DIR}
${CERES_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${SESYNC_INCLUDE_DIRS}
${CSPARSE_INCLUDE_DIR}
${ROSBAG_INCLUDE_DIRS}
${DBoW2_INCLUDE_DIRS}
${DBoW3_INCLUDE_DIRS}
${OBINDEX2_INCLUDE_DIR}
${IBOW_LCD_INCLUDE_DIR}
${OCTOMAP_INCLUDE_DIRS}
${GLOG_INCLUDE_DIRS}
${GTEST_INCLUDE_DIRS}
${GFLAGS_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
${TensorRT_INCLUDE_DIR} ${CUDA_INCLUDE_DIRS}
${TRACY_INCLUDE_DIR}
#${Tensorflow_INCLUDE_DIRS} # may use a different version of Eigen
${PROTOBUF_INCLUDE_DIRS}
#${TORCH_INCLUDE_DIRS} # may use a different version of cuDNN
)
#====================================
# libs
# internal libraries built in the folder utils
set(LIBS
orbslam2_features
bal_dataset
datasets
timeutils
#hfnet_features # We treat this separately for safety since it may be linked with a tensorflow_cc, which may use a different version of Eigen
#superpointglue
)
if(WITH_TENSORRT)
set(LIBS ${LIBS} tensorrtutils)
endif()
link_directories(
${G2O_LIB_DIR}
${PCL_LIBRARY_DIRS}
${GTSAM_LIBRARY_DIRS}
${DBoW3_LIB_DIR}
${IBOW_LCD_LIB_DIR}
${OBINDEX2_LIB_DIR}
)
set(EXT_LIBS
fmt::fmt
${EIGEN3_LIBS}
${Boost_LIBRARIES}
${CHOLMOD_LIBRARIES}
${Pangolin_LIBRARIES}
${PCL_LIBRARIES}
${ROSBAG_LIBS}
${DBoW2_LIB}
gtsam
${G2O_LIBS}
${CERES_LIBRARIES}
${OpenCV_LIBS}
mahi::gui
nlohmann_json::nlohmann_json
${SESYNC_LIBS}
${CSPARSE_LIBRARY}
${DBoW3_LIBS}
${IBOW_LCD_LIBS}
${OCTOMAP_LIBRARIES}
${GTEST_BOTH_LIBRARIES}
${GLOG_LIBRARIES}
${GFLAGS_LIBRARIES}
${YAML_CPP_LIBRARIES}
rerun_sdk
${TensorRT_LIBRARIES} ${CUDA_LIBRARIES}
${TRACY_LIBS}
#${Tensorflow_LIBS} # may use a different version of Eigen
${PROTOBUF_LIBRARY}
#${TORCH_LIBRARIES} # may use a different version of cuDNN
)
#====================================
# source files and folders to build
set(FOLDERS
utils
core
algebra_geometry
backend
frontend
io
viz
loop_closure
dense_mapping
full_slam
semantics
)
foreach(folder ${FOLDERS})
message(STATUS "adding folder: ${folder}")
add_subdirectory(${folder})
endforeach()