forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCMakeLists.txt
68 lines (55 loc) · 1.47 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
cmake_minimum_required(VERSION 3.14)
project(shape_estimation)
find_package(autoware_cmake REQUIRED)
autoware_package()
find_package(PCL REQUIRED COMPONENTS common)
find_package(pcl_conversions REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
set(SHAPE_ESTIMATION_DEPENDENCIES
PCL
OpenCV
Eigen3
)
ament_auto_add_library(shape_estimation_lib SHARED
lib/shape_estimator.cpp
lib/model/bounding_box.cpp
lib/model/convex_hull.cpp
lib/model/cylinder.cpp
lib/filter/car_filter.cpp
lib/filter/bus_filter.cpp
lib/filter/truck_filter.cpp
lib/filter/trailer_filter.cpp
lib/filter/no_filter.cpp
lib/filter/utils.cpp
lib/corrector/no_corrector.cpp
lib/corrector/utils.cpp
)
ament_target_dependencies(shape_estimation_lib ${SHAPE_ESTIMATION_DEPENDENCIES})
target_include_directories(shape_estimation_lib
SYSTEM PUBLIC
"${PCL_INCLUDE_DIRS}"
"${EIGEN3_INCLUDE_DIR}"
)
ament_auto_add_library(shape_estimation_node SHARED
src/node.cpp
)
target_include_directories(shape_estimation_node
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
ament_target_dependencies(shape_estimation_node ${SHAPE_ESTIMATION_DEPENDENCIES})
target_link_libraries(shape_estimation_node
shape_estimation_lib
)
rclcpp_components_register_node(shape_estimation_node
PLUGIN "ShapeEstimationNode"
EXECUTABLE shape_estimation
)
ament_auto_package(INSTALL_TO_SHARE
launch
config
)