-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
executable file
·70 lines (59 loc) · 1.76 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
cmake_minimum_required(VERSION 3.2)
project(li_calib)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -msse4.2")
set(CMAKE_BUILD_TYPE "RELEASE")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -msse4.2 -mavx")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
rosbag
geometry_msgs
nav_msgs
velodyne_msgs
ndt_omp
tf
pcl_ros
)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system filesystem thread date_time)
set(PANGOLIN_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/build-pangolin")
find_package(Pangolin REQUIRED)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/Kontiki)
# Set link libraries used by all binaries
list(APPEND thirdparty_libraries
${Boost_LIBRARIES}
${catkin_LIBRARIES}
${Pangolin_LIBRARIES}
Kontiki
)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES li_calibr_lib
# CATKIN_DEPENDS geometry_msgs nav_msgs roscpp std_msgs velodyne_msgs
# DEPENDS system_lib
)
include_directories( include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${Pangolin_INCLUDE_DIRS}
)
add_library(li_calib_lib
src/core/trajectory_manager.cpp
src/core/inertial_initializer.cpp
src/core/lidar_odometry.cpp
src/core/surfel_association.cpp
)
target_link_libraries(li_calib_lib ${thirdparty_libraries})
add_executable(li_calib_gui
test/li_calib_gui.cpp
src/ui/calib_helper.cpp
src/ui/calib_ui.cpp)
target_link_libraries(li_calib_gui li_calib_lib ${thirdparty_libraries})