From a6e02eb2209047aa5e4c7de89429300e39c993e2 Mon Sep 17 00:00:00 2001 From: Guanxiao Qi <944843236@qq.com> Date: Mon, 28 Jul 2025 18:51:12 +0800 Subject: [PATCH] add lint test in CMakeLists.txt Signed-off-by: Guanxiao Qi <944843236@qq.com> --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f6bb7e..465b788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,4 +41,10 @@ install( share/robosoft_openai) ament_export_dependencies(rosidl_default_runtime) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + ament_lint_auto_find_test_dependencies() +endif() + ament_package()