diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 12:30:08 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 12:30:08 +0000 |
| commit | d62111c56e911eb4e2dc2960d6589added32cfbe (patch) | |
| tree | 1ba2bdf25d2e40128c5c9aafca65d232dae30e40 | |
| parent | 3631e217756d13d2761f3c66b63153a2bb7525be (diff) | |
| download | qxmpp-d62111c56e911eb4e2dc2960d6589added32cfbe.tar.gz | |
make sur examples get rebuilt when the library changes (issue #28)
| -rw-r--r-- | QXmppClient.pro | 4 | ||||
| -rw-r--r-- | example/example.pri | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/QXmppClient.pro b/QXmppClient.pro index d451ec96..5f84f74a 100644 --- a/QXmppClient.pro +++ b/QXmppClient.pro @@ -1,4 +1,6 @@ TEMPLATE = subdirs SUBDIRS = source \ - example + example + +CONFIG += ordered 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 +} + |
