-
Notifications
You must be signed in to change notification settings - Fork 15
/
qtquickqrencode.pro
42 lines (41 loc) · 1.02 KB
/
qtquickqrencode.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
TEMPLATE = subdirs
SUBDIRS += \
widgets \
example/widgetstest
# Taken from Qt Creator project files
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)
}
#if qt version greaterthan 5.4.0
message(------QT_VERSION--------$$QT_VERSION)
minQtVersion(5,4,0):{
SUBDIRS += qml2\
example/qml2test
message(------greaterThan--------)
}
#if qt version lessthan 5.4.0
!minQtVersion(5,4,0):{
message(------lessthan--------)
SUBDIRS += qml1\
example/qml1test
}
CONFIG += ordered