summaryrefslogtreecommitdiffstats
path: root/examples/qtmail/app/app.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtmail/app/app.pro')
-rw-r--r--examples/qtmail/app/app.pro16
1 files changed, 11 insertions, 5 deletions
diff --git a/examples/qtmail/app/app.pro b/examples/qtmail/app/app.pro
index a9db0caa..b81d9e2a 100644
--- a/examples/qtmail/app/app.pro
+++ b/examples/qtmail/app/app.pro
@@ -1,10 +1,18 @@
TEMPLATE = app
-TARGET = qtmail
+
+equals(QT_MAJOR_VERSION, 4){
+ TARGET = qtmail
+ LIBS += -lqmfmessageserver -lqmfclient -lqmfutil
+}
+equals(QT_MAJOR_VERSION, 5){
+ TARGET = qtmail5
+ QT += widgets
+ LIBS += -lqmfmessageserver5 -lqmfclient5 -lqmfutil5
+}
+
CONFIG += qmfutil qmfclient qmfmessageserver
target.path += $$QMF_INSTALL_ROOT/bin
-equals(QT_MAJOR_VERSION, 5): QT += widgets
-
DEPENDPATH += .
INCLUDEPATH += . ../../../src/libraries/qmfclient \
@@ -20,8 +28,6 @@ macx:LIBS += -F../../../src/libraries/qmfclient/build \
-F../libs/qmfutil/build \
-F../../../src/libraries/qmfmessageserver/build
-LIBS += -lqmfmessageserver -lqmfclient -lqmfutil
-
HEADERS += emailclient.h \
messagelistview.h \
searchview.h \