-
Notifications
You must be signed in to change notification settings - Fork 4
/
doer.pro
76 lines (50 loc) · 1.62 KB
/
doer.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
68
69
70
71
72
73
74
75
76
include($${PWD}/modules/modules.pri)
PROG_NAME = doer
VERSION_MAJOR = 1
VERSION_MINOR = 1
VERSION_PATCH = 0
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_PATCH}
QT += core gui widgets
CONFIG += c++11
TEMPLATE = app
DESTDIR = build
INC_DIR = inc
SRC_DIR = src
RES_DIR = res
FORMS_DIR = ui
OBJECTS_DIR = .objs
MOC_DIR = .mocs
UI_DIR = .uis
RCC_DIR = .qrcs
INCLUDEPATH += $${INC_DIR}
HEADERS += $${INC_DIR}/mainwindow.hpp
SOURCES += $${SRC_DIR}/main.cpp \
$${SRC_DIR}/mainwindow.cpp
FORMS += $${FORMS_DIR}/mainwindow.ui
RESOURCES = $${RES_DIR}/resources.qrc
OTHER_FILES += $${RES_DIR}/images/background.png \
$${RES_DIR}/images/$${PROG_NAME}.svg \
$${RES_DIR}/stylesheets/doer.qss
QMAKE_CLEAN += -r $${DESTDIR}/$${PROG_NAME}
DEFINES += PROG_NAME=\\\"$${PROG_NAME}\\\"
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" \
"VERSION_MINOR=$$VERSION_MINOR" \
"VERSION_PATCH=$$VERSION_PATCH" \
DEFINES += VERSION=\\\"$${VERSION}\\\"
# CONFIG += debug
unix:!mac {
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $${PREFIX}/bin
DATADIR = $${PREFIX}/share
OTHER_FILES += dist/$${PROG_NAME}.desktop
target.path = $${BINDIR}
INSTALLS += target
desktop.path = $${DATADIR}/applications
eval(desktop.files += dist/$${PROG_NAME}.desktop)
INSTALLS += desktop
icon.path = $${DATADIR}/icons/hicolor/scalable/apps
eval(icon.files += $${RES_DIR}/images/$${PROG_NAME}.svg)
INSTALLS += icon
}