-
Notifications
You must be signed in to change notification settings - Fork 77
/
CMakeLists.txt
executable file
·103 lines (85 loc) · 3.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
cmake_minimum_required(VERSION 2.8.3)
project(erasor)
set(CMAKE_CONFIGURATION_TYPES "Release" CACHE STRING "" FORCE)
add_compile_options(-std=c++17)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
message_generation
std_msgs
nav_msgs
roslaunch
cv_bridge
pcl_conversions
pcl_ros
geometry_msgs
laser_geometry
sensor_msgs
)
add_message_files(
FILES
node.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
nav_msgs
)
find_package(PCL 1.7 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system filesystem)
catkin_package(
INCLUDE_DIRS include
# CATKIN_DEPENDS roscpp rospy std_msgs
# DEPENDS system_lib
)
include_directories(
${catkin_INCLUDE_DIRS}
src
include
)
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
#add_executable(marker src/pub_marker.cpp ${unavlib_source})
#target_link_libraries(marker ${catkin_LIBRARIES})
#add_dependencies(marker erasor_generate_messages_cpp)
###############
# Deprecated!
#add_executable(fill_intensity src/utils/fill_removert_intensity.cpp ${unavlib_source})
#target_link_libraries(fill_intensity ${catkin_LIBRARIES})
#add_dependencies(fill_intensity erasor_generate_messages_cpp)
#
#
#add_executable(compare_map src/utils/compare_map.cpp ${unavlib_source})
#target_link_libraries(compare_map ${catkin_LIBRARIES})
#add_dependencies(compare_map erasor_generate_messages_cpp)
#
#add_executable(compare_complement src/utils/compare_complement.cpp ${unavlib_source})
#target_link_libraries(compare_complement ${catkin_LIBRARIES})
#add_dependencies(compare_complement erasor_generate_messages_cpp)
#
#add_executable(merge_map src/utils/merge_map.cpp ${unavlib_source})
#target_link_libraries(merge_map ${catkin_LIBRARIES})
#add_dependencies(merge_map erasor_generate_messages_cpp)
################
# Online Map refinement
set(erasor_src
src/offline_map_updater/src/OfflineMapUpdater.cpp
src/offline_map_updater/src/erasor.cpp
src/offline_map_updater/src/erasor_utils.cpp
)
add_executable(viz_kitti_map src/utils/viz_kitti_map.cpp src/offline_map_updater/src/erasor_utils.cpp)
target_link_libraries(viz_kitti_map ${catkin_LIBRARIES})
add_dependencies(viz_kitti_map erasor_generate_messages_cpp)
add_executable(offline_map_updater src/offline_map_updater/main_kitti.cpp ${erasor_src})
target_link_libraries(offline_map_updater ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(offline_map_updater erasor_generate_messages_cpp)
add_executable(main_in_your_env_ros src/offline_map_updater/main_in_your_env.cpp ${erasor_src})
target_link_libraries(main_in_your_env_ros ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(main_in_your_env_ros erasor_generate_messages_cpp)
add_executable(compare_map src/compare_map.cpp src/offline_map_updater/src/erasor_utils.cpp)
target_link_libraries(compare_map ${catkin_LIBRARIES})
add_executable(kitti_mapgen src/mapgen/main.cpp src/mapgen/mapgen.hpp src/offline_map_updater/src/erasor_utils.cpp)
target_link_libraries(kitti_mapgen ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_dependencies(kitti_mapgen erasor_generate_messages_cpp)