-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (27 loc) · 1.14 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
cmake_minimum_required(VERSION 3.20)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -mfma")
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
# set gdb debug
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
project(sensor_lab LANGUAGES CXX)
add_subdirectory(algorithm)
add_subdirectory(feature_detect)
add_subdirectory(pose_estimation)
add_subdirectory(cpp_test)
add_subdirectory(pcl_test)
add_subdirectory(cere_test)
add_subdirectory(g2o_test)
add_subdirectory(task)
add_subdirectory(loop_closure)
add_subdirectory(dense_mapping)
add_subdirectory(kalman_filter)
add_subdirectory(path_plan)
add_subdirectory(path_tracking)
add_subdirectory(imu_and_gnss)
# copy floder to install path
set(build_data_include ${CMAKE_CURRENT_SOURCE_DIR}/build)
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/data ${build_data_include}/data)
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/algorithm/include/common ${build_data_include}/algorithm/include/common)