-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (39 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 2.8.3)
SET(CMAKE_BUILD_TYPE "Release")
project(pgo_livox)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
set(CMAKE_PREFIX_PATH "/opt/ros/noetic")
set(ROS_DEP roscpp rospy std_msgs sensor_msgs nav_msgs cv_bridge image_transport)
find_package(OpenCV 4.2 REQUIRED)
find_package(PCL 1.12 REQUIRED)
find_package(OpenMP REQUIRED)
find_package(catkin REQUIRED COMPONENTS
${ROS_DEP}
)
find_package(GTSAM REQUIRED QUIET)
catkin_package(CATKIN_DEPENDS ${ROS_DEP})
include_directories(
/usr/local/include/eigen3
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${GTSAM_INCLUDE_DIR}
include
)
add_executable(pgo_livox
include/util.h
include/tictoc.h include/tictoc.cpp
include/PointCloudMatcher.h include/PointCloudMatcher.cpp
include/Optimize.h include/Optimize.cpp
src/pgo_livox.cpp)
target_compile_options(pgo_livox
PRIVATE ${OpenMP_CXX_FLAGS}
)
target_link_libraries(
pgo_livox
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_LIBS}
${OpenMP_CXX_FLAGS}
gtsam
)