[Qbs] Generated header files used by multiple products
christian.gudrian at aucos.de
Wed Feb 7 10:00:13 CET 2018
In our project we are using a custom module to generate header files
with classes that descend from QObject.
If a single product depends on this generator module everything works as
expected. A second product, however, may not as well depend on the
generator module, as Qbs complains about duplicate output artifacts.
Without the explicit dependency to the generator module the second
product compiles nonetheless (as the header files have already been
generated). But now it's the linker that complains about missing
symbols from the moc generated source files.
How to share generated header files across products while pertaining moc
AUCOS AG, Matthiashofstraße 47–49, 52064 Aachen, Germany
More information about the Qbs