From 1a6aa256943826f562bf17beb156156a917b2137 Mon Sep 17 00:00:00 2001 From: Juan Pablo Samper Date: Thu, 4 Apr 2019 16:09:26 -0700 Subject: [PATCH] Check copyright of files where possible: - This serves as an example for the EXCLUDE option of ament_lint_auto_find_test_dependencies, allowing to exclude the default ament_copyright configuration and running with a custom configuration Signed-off-by: Juan Pablo Samper --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8075aed8..96cc845b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,8 +54,14 @@ if(BUILD_TESTING) find_package(ament_lint_auto QUIET) if(ament_lint_auto_FOUND) # TODO(mikaelarguedas) add copyright test once the linter accepts /** block comments - set(ament_cmake_copyright_FOUND TRUE) + list(APPEND AMENT_AUTO_LINT_EXCLUDE + ament_cmake_copyright + ) ament_lint_auto_find_test_dependencies() + + # Files in test/fviz_case_study do have compatible copyrights + find_package(ament_cmake_copyright) + ament_copyright("test/fviz_case_study") endif() add_subdirectory(test) endif()