summaryrefslogtreecommitdiffstats
path: root/qmake/doc/src/snippets/qmake/configscopes.pro
blob: 6ab7f7c428a7e480f0eac4eb575d5e5b2bcb0514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SOURCES = main.cpp
#! [0]
CONFIG += opengl
#! [0]

#! [1]
opengl {
    TARGET = application-gl
} else {
#! [1] #! [2]
    TARGET = application
#! [2] #! [3]
}
#! [3]

#! [4]
CONFIG(opengl) {
    message(Building with OpenGL support.)
} else {
#! [4] #! [5]
    message(OpenGL support is not available.)
}
#! [5]