-
Notifications
You must be signed in to change notification settings - Fork 88
/
CMakeLists.txt
68 lines (60 loc) · 1.41 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
cmake_minimum_required(VERSION 2.8.3)
project(imaging_lidar_place_recognition)
######################
### Cmake flags
######################
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE " -O3 -Wall -g -pthread")
######################
### Packages
######################
find_package(catkin REQUIRED COMPONENTS
tf
roscpp
rospy
roslib
# msg
std_msgs
sensor_msgs
geometry_msgs
nav_msgs
visualization_msgs
# cv
cv_bridge
# pcl
pcl_conversions
)
find_package(OpenMP REQUIRED)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(DBoW3 REQUIRED)
######################
### Catkin
######################
catkin_package(
DEPENDS PCL
)
include_directories(
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${DBoW3_INCLUDE_DIRS}
)
link_directories(
${PCL_LIBRARY_DIRS}
${OpenCV_LIBRARY_DIRS}
${DBoW3_LIBRARY_DIRS}
)
######################
### visual odometry
######################
file(GLOB source_files
"src/*.cpp"
"src/ThirdParty/DUtils/*.cpp"
"src/ThirdParty/DVision/*.cpp"
)
# Visual Lopp
add_executable(${PROJECT_NAME}_main ${source_files})
target_compile_options(${PROJECT_NAME}_main PRIVATE ${OpenMP_CXX_FLAGS})
target_link_libraries(${PROJECT_NAME}_main ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OpenCV_LIBRARIES} ${DBoW3_LIBRARIES} ${OpenMP_CXX_FLAGS})