[Interest] Automatic relink of executable after change in dependant static library
Enmaniac Software
enmaniac.software at gmail.com
Mon Jun 19 20:51:25 CEST 2017
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.bornemann at qt.io]
Sent: Monday, June 19, 2017 10:31 AM
To: Enmaniac Software; 'Elvis Stansvik'
Cc: interest at 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
More information about the Interest
mailing list