From 57fc0967ab62f7f8052f96714fc162140e7081a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Mon, 5 Feb 2024 09:35:45 +0100 Subject: [PATCH] Clean CMake (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- point_cloud_transport/CMakeLists.txt | 27 +++------------------------ point_cloud_transport/package.xml | 11 ++--------- 2 files changed, 5 insertions(+), 33 deletions(-) diff --git a/point_cloud_transport/CMakeLists.txt b/point_cloud_transport/CMakeLists.txt index a81e39a..a701458 100644 --- a/point_cloud_transport/CMakeLists.txt +++ b/point_cloud_transport/CMakeLists.txt @@ -120,32 +120,11 @@ ament_export_targets(export_${PROJECT_NAME}) ament_export_dependencies(message_filters rclcpp sensor_msgs pluginlib tl_expected) if(BUILD_TESTING) - find_package(ament_cmake_copyright REQUIRED) - find_package(ament_cmake_cppcheck REQUIRED) - find_package(ament_cmake_cpplint REQUIRED) - find_package(ament_cmake_flake8 REQUIRED) - find_package(ament_cmake_lint_cmake REQUIRED) - find_package(ament_cmake_pep257 REQUIRED) - find_package(ament_cmake_uncrustify REQUIRED) - find_package(ament_cmake_xmllint REQUIRED) - - ament_copyright(EXCLUDE ${_linter_excludes}) - ament_cppcheck( - EXCLUDE ${_linter_excludes} - LANGUAGE c++ - ) - ament_cpplint(EXCLUDE ${_linter_excludes}) - ament_flake8() - ament_lint_cmake() - ament_pep257(EXCLUDE ${_linter_excludes}) - ament_uncrustify( - EXCLUDE ${_linter_excludes} - LANGUAGE c++ - ) - ament_xmllint() - + find_package(ament_lint_auto REQUIRED) find_package(ament_cmake_gtest) + ament_lint_auto_find_test_dependencies() + ament_add_gtest(${PROJECT_NAME}-point_cloud_common test/test_point_cloud_common.cpp) if(TARGET ${PROJECT_NAME}-point_cloud_common) target_link_libraries(${PROJECT_NAME}-point_cloud_common ${PROJECT_NAME}) diff --git a/point_cloud_transport/package.xml b/point_cloud_transport/package.xml index e81181c..bb817bc 100644 --- a/point_cloud_transport/package.xml +++ b/point_cloud_transport/package.xml @@ -26,15 +26,8 @@ sensor_msgs tl_expected - ament_cmake_gtest - ament_cmake_copyright - ament_cmake_cppcheck - ament_cmake_cpplint - ament_cmake_flake8 - ament_cmake_lint_cmake - ament_cmake_pep257 - ament_cmake_uncrustify - ament_cmake_xmllint + ament_lint_common + ament_lint_auto ament_cmake