From d62111c56e911eb4e2dc2960d6589added32cfbe Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 4 Mar 2010 12:30:08 +0000 Subject: make sur examples get rebuilt when the library changes (issue #28) --- example/example.pri | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/example.pri b/example/example.pri index b409c5cf..d83d6d0f 100644 --- a/example/example.pri +++ b/example/example.pri @@ -7,7 +7,15 @@ QT += network xml CONFIG += console debug_and_release CONFIG(debug, debug|release) { - LIBS += -L../../source -lQXmppClient_d + QXMPP_LIB = QXmppClient_d } else { - LIBS += -L../../source -lQXmppClient + QXMPP_LIB = QXmppClient } +LIBS += -L../../source -l$$QXMPP_LIB + +win32 { + PRE_TARGETDEPS += ../../source/${QXMPP_LIB}.lib +} else { + PRE_TARGETDEPS += ../../source/lib$${QXMPP_LIB}.a +} + -- cgit v1.2.3