Thanks Joerg, Personally, I do have some experience with Cmake but my project is quite simple and I thought Qmake should be able to handle it saving me from one external dependency. If in the future it gets more complex, thanks to you all, I have a nice list of tools to choose from!
Cheers! -----Original Message----- From: Joerg Bornemann [mailto:joerg.bornem...@qt.io] Sent: Monday, June 19, 2017 10:31 AM To: Enmaniac Software; 'Elvis Stansvik' Cc: interest@qt-project.org Subject: Re: [Interest] Automatic relink of executable after change in dependant static library 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