Skip to content

Commit

Permalink
Merge pull request #16 from rhabacker/fix-cmake-features
Browse files Browse the repository at this point in the history
Enable vsg_add_target_xxx macros also for submodule builds as vsg now supports this
  • Loading branch information
robertosfield authored Nov 11, 2022
2 parents e9337d2 + f44e950 commit 3caa584
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3caa584

Please sign in to comment.