
Originally Posted by
wysota
From what I undestood you wanted the library to be recompiled automatically. If that's not the case then there is no problem. Add the library to PRE_TARGETDEPS qmake variable.
thanks for the tips. actually I have had to settle for the following:
LIBS += -L../libFoo/lib -lfoo \
-L../libBar/lib -lbar
INCLUDEPATH += ../libFoo/include ../libBar/include
PRE_TARGETDEPS = ../libFoo ../libBar
DEPENDPATH += $$INCLUDEPATH
LIBS += -L../libFoo/lib -lfoo \
-L../libBar/lib -lbar
INCLUDEPATH += ../libFoo/include ../libBar/include
PRE_TARGETDEPS = ../libFoo ../libBar
DEPENDPATH += $$INCLUDEPATH
To copy to clipboard, switch view to plain text mode
what is strange for me here is that basically I have do define my dependencies twice in a way. after all, I already specify where to find include files & where my libraries are. and then I have to specify again that I actually depend on those include files & libraries. for me this seems kind of obvious - if I include or link something, I depend on it
Bookmarks