diff options
Diffstat (limited to 'qmake/doc/snippets/qmake/configscopes.pro')
-rw-r--r-- | qmake/doc/snippets/qmake/configscopes.pro | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qmake/doc/snippets/qmake/configscopes.pro b/qmake/doc/snippets/qmake/configscopes.pro new file mode 100644 index 0000000000..6ab7f7c428 --- /dev/null +++ b/qmake/doc/snippets/qmake/configscopes.pro @@ -0,0 +1,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] |