File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,30 @@ install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})
66
66
67
67
if (BUILD_TESTING )
68
68
find_package (ament_lint_auto REQUIRED )
69
- set (ament_cmake_copyright_FOUND TRUE )
70
- set (ament_cmake_cpplint_FOUND TRUE )
71
69
ament_lint_auto_find_test_dependencies ()
72
70
73
71
find_package (ament_cmake_gtest REQUIRED )
74
72
75
- ament_find_gtest ()
76
-
77
- add_subdirectory (test )
73
+ ament_add_gtest (test_pose_saver_node
74
+ test /test_pose_saver_node.cpp
75
+ )
76
+
77
+ target_include_directories (test_pose_saver_node PUBLIC
78
+ $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>
79
+ )
80
+
81
+ target_link_libraries (test_pose_saver_node
82
+ pose_saver_component
83
+ yaml-cpp
84
+ )
85
+
86
+ ament_target_dependencies (test_pose_saver_node
87
+ rclcpp
88
+ geometry_msgs
89
+ nav2_msgs
90
+ std_srvs
91
+ nav2_util
92
+ )
78
93
endif ()
79
94
80
95
ament_export_include_directories (include /${PROJECT_NAME} )
You can’t perform that action at this time.
0 commit comments