From f44e950ae118c63eb2765cc76234d167221838c5 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 9 Nov 2022 14:33:01 +0100 Subject: [PATCH] Enable vsg_add_target_xxx macros also for submodule builds as vsg now supports this --- CMakeLists.txt | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa1cb0c..0b56f79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,28 +26,28 @@ vsg_setup_build_vars() find_package(vsgXchange) # only used by exanples find_package(${QT_PACKAGE_NAME} COMPONENTS Widgets REQUIRED) +vsg_add_target_clang_format( + FILES + include/*/*.h + src/*/*.cpp +) +vsg_add_target_clobber() +vsg_add_target_cppcheck( + FILES + include/*/*.h + src/*/*.cpp +) +vsg_add_target_docs( + FILES + src + include/*/*.h + src/*/*.cpp +) +vsg_add_target_uninstall() + # only provide custom targets if not building as a submodule/FetchContent if (${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) - vsg_add_target_clang_format( - FILES - include/*/*.h - src/*/*.cpp - ) - vsg_add_target_clobber() - vsg_add_target_cppcheck( - FILES - include/*/*.h - src/*/*.cpp - ) - vsg_add_target_docs( - FILES - src - include/*/*.h - src/*/*.cpp - ) - vsg_add_target_uninstall() - vsg_add_option_maintainer( PREFIX ${PROJECT_NAME} RCLEVEL ${PROJECT_NAME}_RELEASE_CANDIDATE