build: Use fairmq-tidy on our own codebase when RUN_FAIRMQ_TIDY=ON

This commit is contained in:
Dennis Klein
2021-06-26 03:01:11 +02:00
parent df43d3ff1f
commit c6e425253a
4 changed files with 58 additions and 0 deletions

View File

@@ -6,6 +6,10 @@
# copied verbatim in the file "LICENSE" #
################################################################################
if(BUILD_TIDY_TOOL)
include(FairMQTidy)
endif()
#################
# libFairMQ_SDK #
#################
@@ -73,6 +77,9 @@ set_target_properties(${target} PROPERTIES
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
OUTPUT_NAME FairMQ_${target}
)
if(BUILD_TIDY_TOOL AND RUN_FAIRMQ_TIDY)
fairmq_target_tidy(TARGET ${target})
endif()
###############
# executables #