-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
84 lines (75 loc) · 2.06 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 3.10)
project(caliba)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(3rdpart)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
add_library(${PROJECT_NAME}_preprocessor src/preprocessor.cpp)
target_include_directories(${PROJECT_NAME}_preprocessor PUBLIC
include
${PCL_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}_preprocessor PRIVATE
Eigen3::Eigen
${PCL_LIBRARIES}
)
add_library(${PROJECT_NAME}_calibrator src/calibrator.cpp)
target_include_directories(${PROJECT_NAME}_calibrator PUBLIC
include
${PCL_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}_calibrator PRIVATE
Eigen3::Eigen
${PCL_LIBRARIES}
ceres
)
add_library(${PROJECT_NAME}_utils src/utils.cpp)
add_dependencies(${PROJECT_NAME}_utils yaml-cpp)
target_compile_definitions(${PROJECT_NAME}_utils PUBLIC
DIR_HOME="${CMAKE_CURRENT_LIST_DIR}"
)
target_include_directories(${PROJECT_NAME}_utils PUBLIC
include
)
target_link_libraries(${PROJECT_NAME}_utils PUBLIC
yaml-cpp
)
add_executable(${PROJECT_NAME}_calib src/calib.cpp)
add_dependencies(${PROJECT_NAME}_calib
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_calibrator
${PROJECT_NAME}_utils
)
target_link_libraries(${PROJECT_NAME}_calib PUBLIC
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_calibrator
${PROJECT_NAME}_utils
)
add_executable(${PROJECT_NAME}_cmb src/combine.cpp)
add_dependencies(${PROJECT_NAME}_cmb
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_utils
)
target_link_libraries(${PROJECT_NAME}_cmb PUBLIC
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_utils
)
add_executable(${PROJECT_NAME}_apb src/apply_bias.cpp)
add_dependencies(${PROJECT_NAME}_apb
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_utils
)
target_link_libraries(${PROJECT_NAME}_apb PUBLIC
${PROJECT_NAME}_preprocessor
${PROJECT_NAME}_utils
)
add_executable(${PROJECT_NAME}_split src/split.cpp)
target_include_directories(${PROJECT_NAME}_split PUBLIC
include
${PCL_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}_split PUBLIC
${PCL_LIBRARIES}
${PROJECT_NAME}_preprocessor
)