summaryrefslogtreecommitdiffstats
path: root/src/protocol/protocol.pro
blob: 6aa6e0434349ff47c71ab7e4c293b51f75528a79 (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
TEMPLATE = lib

TARGET = QstProtocol
TARGETPATH = QtSystemTest

TEMPLATE = lib

CONFIG += no_clean qt
QT += core network

mac:CONFIG += absolute_library_soname

SOURCES += \
    qstprotocol.cpp \
    qstconnection.cpp \
    qstconnectionmanager.cpp

PUBLIC_HEADERS += \
    qstprotocol.h \
    qstconnection.h \
    qstconnectionmanager.h \
    qstglobal.h \
    qstdebug.h \
    QstProtocol \
    QstConnection \
    QstConnectionManager \
    QstDebug

HEADERS = $$PUBLIC_HEADERS

# Installing libs and headers into Qt lib
includes.files = $$PUBLIC_HEADERS
includes.path = $$[QT_INSTALL_HEADERS]/$$TARGETPATH

target.path = $$[QT_INSTALL_LIBS]

INSTALLS += includes target

# Building so that other libs in project can access this lib
DESTDIR = ../../lib
INCLUDEDESTDIR = $$OUT_PWD/../../include/$$TARGETPATH
includedir.target = dummytarget
includedir.commands = (mkdir -p $$INCLUDEDESTDIR && cd $$PWD && cp $$PUBLIC_HEADERS $$INCLUDEDESTDIR/)

QMAKE_EXTRA_TARGETS += includedir

PRE_TARGETDEPS += dummytarget