Prevent running Qt's generator on files from this generator

This commit is contained in:
Martchus 2018-02-05 21:21:56 +01:00
parent ea924b7a3f
commit 9e11d805c1
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ function(add_reflection_generator_invocation)
VERBATIM
)
# prevent Qt's code generator to be executed on the files generated by this code generator
set_property(SOURCE "${OUTPUT_FILE}" PROPERTY SKIP_AUTOGEN ON)
# append the output file to lists specified via OUTPUT_LISTS
if(ARGS_OUTPUT_LISTS)
foreach(OUTPUT_LIST ${ARGS_OUTPUT_LISTS})