On 16/06/2017 22:36, Enmaniac Software wrote:

Ah indeed. It worked!

To recap: I have added the following to MyApp PRO file:
PRE_TARGETDEPS += $$PWD/../staticlib/debug/staticlib.lib

It’s a bit pity that PRE_TARGETDEPS takes the absolute path to the file rather 
than simply the target name (thus resolving the path on its own depending on OS 
and naming conventions)

Exactly. For cross-platform projects this is a big pain point of qmake.

You've already got recommendations for "bigger hammers", but I recommend to have a look at qbs where this particular case of dependency tracking works out of the box.


Interest mailing list

Reply via email to