-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
83 lines (71 loc) · 1.84 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
project(leslie)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -W -Wno-unused-parameter -O2")
add_definitions(-DSTEAM_DEFAULT_NUM_OPENMP_THREADS=8)
find_package(catkin REQUIRED COMPONENTS
steam
)
find_package(OpenMP REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(OMP_NUM_THREADS 8)
find_package(OpenCV 3 REQUIRED)
find_package(libpointmatcher REQUIRED)
find_package(libnabo REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${libpointmatcher_INCLUDE_DIRS}
${libnabo_INCLUDE_DIRS}
)
add_library(utils src/utils.cpp)
target_link_libraries(utils
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${libpointmatcher_INCLUDE_DIRS}
)
add_library(estimation src/estimation.cpp)
target_link_libraries(estimation
${catkin_LIBRARIES}
${libnabo_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_mapping src/mapping.cpp)
target_link_libraries(${PROJECT_NAME}_mapping
utils
estimation
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${libpointmatcher_LIBRARIES}
)
add_executable(${PROJECT_NAME}_odometry src/odometry.cpp)
target_link_libraries(${PROJECT_NAME}_odometry
utils
estimation
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${libpointmatcher_LIBRARIES}
)
add_executable(batch_optimize_poses src/batch_optimize_poses.cpp)
target_link_libraries(batch_optimize_poses
utils
estimation
${DEPEND_LIBS}
${catkin_LIBRARIES}
${libpointmatcher_LIBRARIES}
)
add_executable(ray_tracing src/ray_tracing.cpp)
target_link_libraries(ray_tracing
utils
estimation
${catkin_LIBRARIES}
${libpointmatcher_LIBRARIES}
)
add_executable(filter_movable src/filter_movable.cpp)
target_link_libraries(filter_movable
utils
estimation
${catkin_LIBRARIES}
${libpointmatcher_LIBRARIES}
)