-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathqtutils.pro
91 lines (72 loc) · 2.03 KB
/
qtutils.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
TEMPLATE = lib
TARGET = qtutils
CONFIG += staticlib
CONFIG += strict_c++ c++latest
mac* | linux* | freebsd{
CONFIG(release, debug|release):CONFIG *= Release optimize_full
CONFIG(debug, debug|release):CONFIG *= Debug
}
contains(QT_ARCH, x86_64) {
ARCHITECTURE = x64
} else {
ARCHITECTURE = x86
}
Release{
OUTPUT_DIR=release/$${ARCHITECTURE}
OUTPUT_DIR_NOARCH=release
}
Debug{
OUTPUT_DIR=debug/$${ARCHITECTURE}
OUTPUT_DIR_NOARCH=debug
}
DESTDIR = ../bin/$${OUTPUT_DIR}
DESTDIR_NOARCH = ../bin/$${OUTPUT_DIR_NOARCH}
OBJECTS_DIR = ../build/$${OUTPUT_DIR}/$${TARGET}
MOC_DIR = ../build/$${OUTPUT_DIR}/$${TARGET}
UI_DIR = ../build/$${OUTPUT_DIR}/$${TARGET}
RCC_DIR = ../build/$${OUTPUT_DIR}/$${TARGET}
QT = core gui widgets
# Required for qInfo() to log function name, file and line in release build
DEFINES += QT_MESSAGELOGCONTEXT
INCLUDEPATH += \
../image-processing \
../cpputils \
../cpp-template-utils \
win*{
QMAKE_CXXFLAGS += /MP /Zi /wd4251 /JMC
QMAKE_CXXFLAGS += /std:c++latest /permissive- /Zc:__cplusplus
DEFINES += WIN32_LEAN_AND_MEAN NOMINMAX
QMAKE_CXXFLAGS_WARN_ON = /W4
!*msvc2013*:QMAKE_LFLAGS += /DEBUG:FASTLINK
Debug:QMAKE_LFLAGS += /INCREMENTAL
Release:QMAKE_LFLAGS += /OPT:REF /OPT:ICF
*msvc*{
QMAKE_CXXFLAGS += /FS
}
}
linux*{
}
linux*|mac*|freebsd{
QMAKE_CXXFLAGS += -pedantic-errors
QMAKE_CFLAGS += -pedantic-errors
QMAKE_CXXFLAGS_WARN_ON = -Wall
Release:DEFINES += NDEBUG=1
Debug:DEFINES += _DEBUG
PRE_TARGETDEPS += $${DESTDIR_NOARCH}/libcpputils.a
}
include(imageprocessing/imageprocessing.pri)
include(logger/logger.pri)
include(aboutdialog/aboutdialog.pri)
include(settings/settings.pri)
include(taskbarprogress/taskbarprogress.pri)
include(utils/utils.pri)
include(settingsui/settingsui.pri)
include(string/string.pri)
include(mouseclickdetector/mouseclickdetector.pri)
include(historylist/historylist.pri)
include(widgets/widgets.pri)
include(dialogs/dialogs.pri)
include(ui/ui.pri)
include(std_helpers/std_helpers.pri)
include(qtcore_helpers/qtcore_helpers.pri)
win*:include(windows/windows.pri)