-
Notifications
You must be signed in to change notification settings - Fork 1
/
QWebServer.pro
69 lines (44 loc) · 1.36 KB
/
QWebServer.pro
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
TEMPLATE = lib
DEFINES += QWEBSERVER_SHARED
DEBUG_TARGET = QWebServerd
RELEASE_TARGET = QWebServer
QT = core network
###########################
### LINK DEP LIBS ###
###########################
# LIBS += -lAdvapi32 -lSetupapi
###########################
### SETUP OUTPUT ###
###########################
OUTDIR = ..
CONFIG(debug, debug|release){
TARGET = $$DEBUG_TARGET
}
CONFIG(release, debug|release){
TARGET = $$RELEASE_TARGET
DEFINES += QT_NO_DEBUG_OUTPUT
}
DESTDIR = $$OUTDIR/lib/$$RELEASE_TARGET
DLLDESTDIR = $$OUTDIR/../bin/FlipBox
###########################
### SOURCES ###
###########################
# SOURCES += *.cpp
HEADERS += *.h
include(lib/bfLogging/src/bfLogging.pri)
include(lib/bfHttpServer/src/bfHttpServer.pri)
include(lib/bfTemplateEngine/src/bfTemplateEngine.pri)
###########################
### INSTALL ###
###########################
win32 {
OUTINCLUDE = ..\\include
headercopy.commands += cd $$PWD $$escape_expand(\\n)
headercopy.commands += if not exist $$OUTINCLUDE\\$$RELEASE_TARGET mkdir $$OUTINCLUDE\\$$RELEASE_TARGET $$escape_expand(\\n)
for(header, HEADERS) {
header ~= s,/,\\,g
headercopy.commands += xcopy $$header $$OUTINCLUDE\\$$RELEASE_TARGET /y $$escape_expand(\\n)
}
QMAKE_EXTRA_TARGETS += headercopy
POST_TARGETDEPS += headercopy
}