-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 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
cmake_minimum_required(VERSION 3.8)
project(ike_slam)
add_compile_options(-Wall -Wextra -Wpedantic)
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
find_package(ament_cmake_auto REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
ament_auto_find_build_dependencies()
ament_auto_add_library(${PROJECT_NAME} SHARED
src/map/sparseOccupancyGridMap.cpp
src/mapping/mapping.cpp
src/pf/likelihoodField.cpp
src/pf/mcl.cpp
src/pf/motionModel.cpp
src/pf/observationModel.cpp
src/pf/resampling.cpp
src/scan_matching/scan_matching.cpp
src/ike_slam.cpp
)
target_link_libraries(${PROJECT_NAME})
rclcpp_components_register_nodes(${PROJECT_NAME}
PLUGIN "ike_slam::IkeSlam"
EXECUTABLE ${PROJECT_NAME}
)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
set(ament_cmake_copyright_FOUND TRUE)
set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()
ament_auto_package(
INSTALL_TO_SHARE
config
launch
)