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.


Cheers,

Joerg
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to