-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
55 lines (45 loc) · 1.34 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
cmake_minimum_required(VERSION 3.8)
project(norlab_icp_mapper_ros)
set(CMAKE_BUILD_TYPE "Release")
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(std_srvs REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2 REQUIRED)
find_package(libpointmatcher_ros REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(libpointmatcher CONFIG 1.4.2 REQUIRED)
find_package(norlab_icp_mapper CONFIG 2.0.0 REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"srv/SaveTrajectory.srv"
"srv/SaveMap.srv"
"srv/LoadMap.srv"
DEPENDENCIES std_msgs geometry_msgs
)
include_directories(
${norlab_icp_mapper_INCLUDE_DIRS}
)
add_executable(mapper_node src/mapper_node.cpp src/NodeParameters.cpp)
ament_target_dependencies(mapper_node
rclcpp
std_msgs
sensor_msgs
geometry_msgs
std_srvs
tf2_ros
tf2
libpointmatcher_ros
)
target_link_libraries(mapper_node
${norlab_icp_mapper_LIBRARIES}
)
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(mapper_node "${cpp_typesupport_target}")
ament_export_dependencies(rosidl_default_runtime)
install(TARGETS mapper_node
DESTINATION lib/${PROJECT_NAME}
)
ament_package()