I have different use-cases where I would like to declare a file-dependency at target-level, be it generated or in the sources, which influences the compile-process for all sources of this target.
Imagine a configuration-file for the compiler (added with
target_compile_options()), or generated meta-information used for optimisations.
I’m now using
set_source_files_properties(.. PROPERTIES OBJECT_DEPENDS ...) but this applies it globally to the source-file and thus is used in other target (where the same source file is compiled) and the dependency does not yet exist (and cannot, it is created in a later stage).
Is there something like
set_target_properties(.. ALL_SOURCES_DEPENDS ..)?