-
Notifications
You must be signed in to change notification settings - Fork 75
/
QtQuickVcp.pro
52 lines (44 loc) · 1.04 KB
/
QtQuickVcp.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
# QtQuickVcp project
defineTest(minQtVersion) {
maj = $$1
min = $$2
patch = $$3
isEqual(QT_MAJOR_VERSION, $$maj) {
isEqual(QT_MINOR_VERSION, $$min) {
isEqual(QT_PATCH_VERSION, $$patch) {
return(true)
}
greaterThan(QT_PATCH_VERSION, $$patch) {
return(true)
}
}
greaterThan(QT_MINOR_VERSION, $$min) {
return(true)
}
}
greaterThan(QT_MAJOR_VERSION, $$maj) {
return(true)
}
return(false)
}
!minQtVersion(5, 4, 0) {
message("Cannot build QtQuickVcp with Qt version $${QT_VERSION}.")
error("Use at least Qt 5.4.0.")
}
TEMPLATE = subdirs
SUBDIRS += 3rdparty src apps # examples
src.depends = 3rdparty
apps.depends = src
CONFIG(debug, debug|release) {
SUBDIRS += tests
tests.depends = src
}
include(qtquickvcp_version.pri)
include(paths.pri)
include(doc/doc.pri)
CONFIG(debug, debug|release) {
message("running in DEBUG mode")
}
else {
message("running in RELEASE mode")
}