summaryrefslogtreecommitdiffstats
path: root/tests/servicetest.pro
blob: b0ca1cf9dd31b32c74031f861dc8d2e048d5936e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
QT -= gui
QT += testlib

win32: CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

HEADERS += \
    ../qdb/server/connection.h \
    ../qdb/server/echoservice.h \
    ../qdb/server/service.h

SOURCES += \
    servicetest.cpp \
    ../qdb/server/connection.cpp \
    ../qdb/server/echoservice.cpp \
    ../qdb/server/service.cpp

INCLUDEPATH += $$PWD/../

unix {
    LIBS = -L$$OUT_PWD/../libqdb -lqdb
    QMAKE_RPATHDIR += ../libqdb
}

win32 {
    HEADERS += \
        ../libqdb/protocol/protocol.h \
        ../libqdb/protocol/qdbmessage.h \
        ../libqdb/protocol/qdbtransport.h \
        ../libqdb/stream.h \
        ../libqdb/abstractconnection.h \
        ../libqdb/streampacket.h

    SOURCES += \
        ../libqdb/protocol/qdbmessage.cpp \
        ../libqdb/protocol/qdbtransport.cpp \
        ../libqdb/stream.cpp \
        ../libqdb/abstractconnection.cpp \
        ../libqdb/streampacket.cpp

    CONFIG(debug, debug|release) {
        LIBQDBDIR = $$OUT_PWD/../libqdb/debug
    } else {
        LIBQDBDIR = $$OUT_PWD/../libqdb/release
    }
    LIBS = -L$$LIBQDBDIR -lqdb
}