diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-15 14:01:48 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-10-15 13:46:36 +0000 |
commit | c13bafec0928b94e8e1ab8544efb6336bf4842c9 (patch) | |
tree | 8c415b3a6b51795595592c86284b6b3c88823a48 /examples | |
parent | 69bb9f7cadec8b03a18ba9a33075201988ae058e (diff) |
Add QT_RESOURCE_TARGET_DEPENDENCY source file property
In the plugin test in QtBase we have a scenario where we have target
binaries that are inputs to add_qt_resource(). If we do not remove these
files from the dependency list for add_custom_command() cmake will
fail to generate the build files.
If we mark them as generated source files, we'd have to add a special
rule to generate them. Furthermore, using $<TARGET_FILE:...> does not
work due processing done by add_qt_resource.
To bypass this we check whether the property is set and instead of
adding the file to the dependency list we add the target referenced
in that property. RCC will still work as expected but will fail if the
files aren't present.
Change-Id: I16855a54f5606d6fe27ab1347ed7ff4f40392c98
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions