-
Notifications
You must be signed in to change notification settings - Fork 720
/
Copy pathCMakeLists.txt
68 lines (56 loc) · 1.5 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(autoware_velocity_smoother)
find_package(autoware_cmake REQUIRED)
autoware_package()
find_package(Boost REQUIRED)
find_package(eigen3_cmake_module REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(
SYSTEM
${EIGEN3_INCLUDE_DIR}
)
set(MOTION_VELOCITY_SMOOTHER_SRC
src/node.cpp
)
set(SMOOTHER_SRC
src/smoother/smoother_base.cpp
src/smoother/l2_pseudo_jerk_smoother.cpp
src/smoother/linf_pseudo_jerk_smoother.cpp
src/smoother/jerk_filtered_smoother.cpp
src/smoother/analytical_jerk_constrained_smoother/analytical_jerk_constrained_smoother.cpp
src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp
src/trajectory_utils.cpp
src/resample.cpp
)
ament_auto_add_library(smoother SHARED
${SMOOTHER_SRC}
)
ament_auto_add_library(${PROJECT_NAME}_node SHARED
${MOTION_VELOCITY_SMOOTHER_SRC}
)
target_link_libraries(${PROJECT_NAME}_node
smoother
)
rclcpp_components_register_node(${PROJECT_NAME}_node
PLUGIN "autoware::velocity_smoother::VelocitySmootherNode"
EXECUTABLE velocity_smoother_node
)
if(BUILD_TESTING)
ament_add_ros_isolated_gmock(test_smoother_functions
test/test_smoother_functions.cpp
)
target_link_libraries(test_smoother_functions
smoother
)
ament_add_ros_isolated_gtest(test_${PROJECT_NAME}
test/test_velocity_smoother_node_interface.cpp
)
target_link_libraries(test_${PROJECT_NAME}
${PROJECT_NAME}_node
)
endif()
ament_auto_package(
INSTALL_TO_SHARE
launch
config
)