[Qt-interest] qmake: target app depends on target lib
KIMURA, Hidetaka
kimura at jig.jp
Mon Nov 9 10:21:33 CET 2009
Hi,
I use TARGETDEPS for such case.
TARGETDEPS += ../lib/<mylib>.a
But this is said ugly. see
http://stackoverflow.com/questions/781494/how-do-a-specify-a-library-file-dependency-for-qmake-in-qt
On Sat, 07 Nov 2009 15:00:46 +0100
Lorenzo Bettini <bettini at dsi.unifi.it> wrote:
> Hi
>
> I have a project with a lib subdir and an examples subdir (the library
> is built statically).
>
> In the examples subdir I have
>
> INCLUDEPATH += . ../lib
> DEPENDPATH += . ../lib
> LIBS += -L../lib -l<mylib>
>
> and the examples app is correctly compiled and linked to the library.
>
> However, if I change the library, the examples app is not automatically
> rebuilt...
>
> is there a way to set this dependency?
>
> thanks in advance
> Lorenzo
>
> --
> Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
> ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
> HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
> http://www.myspace.com/supertrouperabba
> BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
> http://www.gnu.org/software/src-highlite
> http://www.gnu.org/software/gengetopt
> http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-------
KIMURA, Hide - kimura at jig.jp
More information about the Qt-interest-old
mailing list