generated from MapIV/ros2_composable_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
63 lines (49 loc) · 1.66 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
cmake_minimum_required(VERSION 3.14)
project(ros2_ground_segmentation)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
find_package (PCL REQUIRED COMPONENTS common io filters)
add_definitions(${PCL_DEFINITIONS})
link_directories(${PCL_LIBRARY_DIRS})
# line_fit_ground_segmentation - Composable Nodes are libraries loaded at runtime
ament_auto_add_library(linefit_ground_segmentation SHARED
src/linefit_ground_segmentation.cpp
src/linefit/linefit_seg.cpp
src/linefit/bin.cpp
src/linefit/segment.cpp
)
target_link_libraries(linefit_ground_segmentation
${PCL_LIBRARIES}
)
target_include_directories(linefit_ground_segmentation PUBLIC
include
${PCL_INCLUDE_DIRS}
)
rclcpp_components_register_node(linefit_ground_segmentation
PLUGIN "LinefitGroundSegmentation"
EXECUTABLE linefit_ground_segmentation_node
)
# ray_ground_segmentation - Composable Nodes are libraries loaded at runtime
ament_auto_add_library(ray_ground_segmentation SHARED
src/ray_ground_segmentation.cpp
src/ray/ray_ground_seg.cpp
)
target_link_libraries(ray_ground_segmentation
${PCL_LIBRARIES}
pcl_filters
)
target_include_directories(ray_ground_segmentation PUBLIC
include
${PCL_INCLUDE_DIRS}
)
rclcpp_components_register_node(ray_ground_segmentation
PLUGIN "RayGroundSegmentation"
EXECUTABLE ray_ground_segmentation_node
)
# Install
ament_auto_package(INSTALL_TO_SHARE
launch
)