summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt25
-rw-r--r--examples/corelib/CMakeLists.txt7
-rw-r--r--examples/corelib/ipc/CMakeLists.txt14
-rw-r--r--examples/corelib/ipc/localfortuneclient/CMakeLists.txt17
-rw-r--r--examples/corelib/ipc/localfortuneserver/CMakeLists.txt17
-rw-r--r--examples/corelib/ipc/sharedmemory/CMakeLists.txt21
-rw-r--r--examples/corelib/mimetypes/CMakeLists.txt6
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt21
-rw-r--r--examples/corelib/serialization/CMakeLists.txt5
-rw-r--r--examples/corelib/serialization/cbordump/CMakeLists.txt19
-rw-r--r--examples/corelib/serialization/convert/CMakeLists.txt26
-rw-r--r--examples/corelib/serialization/savegame/CMakeLists.txt22
-rw-r--r--examples/corelib/threads/CMakeLists.txt9
-rw-r--r--examples/corelib/threads/mandelbrot/CMakeLists.txt25
-rw-r--r--examples/corelib/threads/queuedcustomtype/CMakeLists.txt18
-rw-r--r--examples/corelib/threads/semaphores/CMakeLists.txt15
-rw-r--r--examples/corelib/threads/waitconditions/CMakeLists.txt15
-rw-r--r--examples/corelib/tools/CMakeLists.txt5
-rw-r--r--examples/corelib/tools/contiguouscache/CMakeLists.txt16
-rw-r--r--examples/corelib/tools/customtype/CMakeLists.txt16
-rw-r--r--examples/corelib/tools/customtypesending/CMakeLists.txt17
-rw-r--r--examples/dbus/CMakeLists.txt13
-rw-r--r--examples/dbus/chat/CMakeLists.txt24
-rw-r--r--examples/dbus/complexpingpong/CMakeLists.txt16
-rw-r--r--examples/dbus/listnames/CMakeLists.txt22
-rw-r--r--examples/dbus/pingpong/CMakeLists.txt35
-rw-r--r--examples/dbus/remotecontrolledcar/CMakeLists.txt4
-rw-r--r--examples/dbus/remotecontrolledcar/car/CMakeLists.txt19
-rw-r--r--examples/dbus/remotecontrolledcar/controller/CMakeLists.txt21
-rw-r--r--examples/embedded/CMakeLists.txt8
-rw-r--r--examples/embedded/digiflip/CMakeLists.txt15
-rw-r--r--examples/embedded/flickable/CMakeLists.txt16
-rw-r--r--examples/embedded/flightinfo/CMakeLists.txt27
-rw-r--r--examples/embedded/lightmaps/CMakeLists.txt22
-rw-r--r--examples/embedded/raycasting/CMakeLists.txt23
-rw-r--r--examples/embedded/styleexample/CMakeLists.txt30
-rw-r--r--examples/gui/CMakeLists.txt8
-rw-r--r--examples/gui/analogclock/CMakeLists.txt21
-rw-r--r--examples/gui/openglwindow/CMakeLists.txt18
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt18
-rw-r--r--examples/network/CMakeLists.txt45
-rw-r--r--examples/network/bearermonitor/CMakeLists.txt33
-rw-r--r--examples/network/blockingfortuneclient/CMakeLists.txt18
-rw-r--r--examples/network/broadcastreceiver/CMakeLists.txt17
-rw-r--r--examples/network/broadcastsender/CMakeLists.txt17
-rw-r--r--examples/network/dnslookup/CMakeLists.txt27
-rw-r--r--examples/network/download/CMakeLists.txt18
-rw-r--r--examples/network/downloadmanager/CMakeLists.txt21
-rw-r--r--examples/network/fortuneclient/CMakeLists.txt17
-rw-r--r--examples/network/fortuneserver/CMakeLists.txt17
-rw-r--r--examples/network/googlesuggest/CMakeLists.txt18
-rw-r--r--examples/network/http/CMakeLists.txt20
-rw-r--r--examples/network/loopback/CMakeLists.txt17
-rw-r--r--examples/network/multicastreceiver/CMakeLists.txt17
-rw-r--r--examples/network/multicastsender/CMakeLists.txt17
-rw-r--r--examples/network/multistreamclient/CMakeLists.txt21
-rw-r--r--examples/network/multistreamserver/CMakeLists.txt24
-rw-r--r--examples/network/network-chat/CMakeLists.txt23
-rw-r--r--examples/network/securesocketclient/CMakeLists.txt26
-rw-r--r--examples/network/secureudpclient/CMakeLists.txt24
-rw-r--r--examples/network/secureudpserver/CMakeLists.txt24
-rw-r--r--examples/network/threadedfortuneserver/CMakeLists.txt19
-rw-r--r--examples/network/torrent/.prev_CMakeLists.txt42
-rw-r--r--examples/network/torrent/CMakeLists.txt44
-rw-r--r--examples/qpa/CMakeLists.txt4
-rw-r--r--examples/qpa/qrasterwindow/CMakeLists.txt15
-rw-r--r--examples/qpa/windows/CMakeLists.txt19
-rw-r--r--examples/qtconcurrent/CMakeLists.txt9
-rw-r--r--examples/qtconcurrent/imagescaling/CMakeLists.txt17
-rw-r--r--examples/qtconcurrent/map/CMakeLists.txt20
-rw-r--r--examples/qtconcurrent/progressdialog/CMakeLists.txt18
-rw-r--r--examples/qtconcurrent/runfunction/CMakeLists.txt19
-rw-r--r--examples/qtconcurrent/wordcount/CMakeLists.txt19
-rw-r--r--examples/qtestlib/CMakeLists.txt7
-rw-r--r--examples/qtestlib/tutorial1/CMakeLists.txt16
-rw-r--r--examples/qtestlib/tutorial2/CMakeLists.txt16
-rw-r--r--examples/qtestlib/tutorial3/CMakeLists.txt16
-rw-r--r--examples/qtestlib/tutorial4/CMakeLists.txt16
-rw-r--r--examples/qtestlib/tutorial5/CMakeLists.txt16
-rw-r--r--examples/sql/CMakeLists.txt17
-rw-r--r--examples/sql/books/CMakeLists.txt31
-rw-r--r--examples/sql/cachedtable/CMakeLists.txt18
-rw-r--r--examples/sql/drilldown/CMakeLists.txt28
-rw-r--r--examples/sql/masterdetail/CMakeLists.txt30
-rw-r--r--examples/sql/querymodel/CMakeLists.txt19
-rw-r--r--examples/sql/relationaltablemodel/CMakeLists.txt17
-rw-r--r--examples/sql/sqlbrowser/CMakeLists.txt31
-rw-r--r--examples/sql/sqlwidgetmapper/CMakeLists.txt17
-rw-r--r--examples/sql/tablemodel/CMakeLists.txt17
-rw-r--r--examples/widgets/CMakeLists.txt33
-rw-r--r--examples/widgets/animation/CMakeLists.txt8
-rw-r--r--examples/widgets/animation/animatedtiles/CMakeLists.txt26
-rw-r--r--examples/widgets/animation/easing/CMakeLists.txt25
-rw-r--r--examples/widgets/animation/moveblocks/CMakeLists.txt15
-rw-r--r--examples/widgets/animation/states/CMakeLists.txt25
-rw-r--r--examples/widgets/animation/stickman/CMakeLists.txt29
-rw-r--r--examples/widgets/animation/sub-attaq/CMakeLists.txt142
-rw-r--r--examples/widgets/desktop/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt16
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt23
-rw-r--r--examples/widgets/dialogs/CMakeLists.txt14
-rw-r--r--examples/widgets/dialogs/classwizard/CMakeLists.txt27
-rw-r--r--examples/widgets/dialogs/extension/CMakeLists.txt16
-rw-r--r--examples/widgets/dialogs/findfiles/CMakeLists.txt16
-rw-r--r--examples/widgets/dialogs/licensewizard/CMakeLists.txt23
-rw-r--r--examples/widgets/dialogs/standarddialogs/CMakeLists.txt16
-rw-r--r--examples/widgets/dialogs/tabdialog/CMakeLists.txt16
-rw-r--r--examples/widgets/dialogs/trivialwizard/CMakeLists.txt15
-rw-r--r--examples/widgets/draganddrop/CMakeLists.txt7
-rw-r--r--examples/widgets/draganddrop/draggableicons/CMakeLists.txt23
-rw-r--r--examples/widgets/draganddrop/draggabletext/CMakeLists.txt21
-rw-r--r--examples/widgets/draganddrop/dropsite/CMakeLists.txt17
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt22
-rw-r--r--examples/widgets/draganddrop/puzzle/CMakeLists.txt26
-rw-r--r--examples/widgets/effects/CMakeLists.txt4
-rw-r--r--examples/widgets/effects/blurpicker/CMakeLists.txt30
-rw-r--r--examples/widgets/effects/fademessage/CMakeLists.txt21
-rw-r--r--examples/widgets/gestures/CMakeLists.txt3
-rw-r--r--examples/widgets/gestures/imagegestures/CMakeLists.txt17
-rw-r--r--examples/widgets/graphicsview/CMakeLists.txt20
-rw-r--r--examples/widgets/graphicsview/anchorlayout/CMakeLists.txt15
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt22
-rw-r--r--examples/widgets/graphicsview/boxes/CMakeLists.txt54
-rw-r--r--examples/widgets/graphicsview/chip/CMakeLists.txt44
-rw-r--r--examples/widgets/graphicsview/collidingmice/CMakeLists.txt21
-rw-r--r--examples/widgets/graphicsview/diagramscene/CMakeLists.txt39
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt22
-rw-r--r--examples/widgets/graphicsview/elasticnodes/CMakeLists.txt18
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt30
-rw-r--r--examples/widgets/graphicsview/flowlayout/CMakeLists.txt20
-rw-r--r--examples/widgets/graphicsview/padnavigator/CMakeLists.txt45
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt15
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt25
-rw-r--r--examples/widgets/itemviews/CMakeLists.txt27
-rw-r--r--examples/widgets/itemviews/addressbook/CMakeLists.txt20
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt16
-rw-r--r--examples/widgets/itemviews/chart/CMakeLists.txt30
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt17
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt16
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt23
-rw-r--r--examples/widgets/itemviews/dirview/CMakeLists.txt15
-rw-r--r--examples/widgets/itemviews/editabletreemodel/CMakeLists.txt25
-rw-r--r--examples/widgets/itemviews/fetchmore/CMakeLists.txt17
-rw-r--r--examples/widgets/itemviews/flattreeview/CMakeLists.txt15
-rw-r--r--examples/widgets/itemviews/frozencolumn/CMakeLists.txt21
-rw-r--r--examples/widgets/itemviews/interview/CMakeLists.txt32
-rw-r--r--examples/widgets/itemviews/pixelator/CMakeLists.txt31
-rw-r--r--examples/widgets/itemviews/puzzle/CMakeLists.txt23
-rw-r--r--examples/widgets/itemviews/simpledommodel/CMakeLists.txt19
-rw-r--r--examples/widgets/itemviews/simpletreemodel/CMakeLists.txt22
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt16
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt16
-rw-r--r--examples/widgets/itemviews/spreadsheet/CMakeLists.txt35
-rw-r--r--examples/widgets/itemviews/stardelegate/CMakeLists.txt18
-rw-r--r--examples/widgets/itemviews/storageview/CMakeLists.txt20
-rw-r--r--examples/widgets/layouts/CMakeLists.txt6
-rw-r--r--examples/widgets/layouts/basiclayouts/CMakeLists.txt16
-rw-r--r--examples/widgets/layouts/borderlayout/CMakeLists.txt17
-rw-r--r--examples/widgets/layouts/dynamiclayouts/CMakeLists.txt16
-rw-r--r--examples/widgets/layouts/flowlayout/CMakeLists.txt17
-rw-r--r--examples/widgets/mac/CMakeLists.txt7
-rw-r--r--examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt19
-rw-r--r--examples/widgets/mac/qmacnativewidget/CMakeLists.txt19
-rw-r--r--examples/widgets/mainwindows/CMakeLists.txt8
-rw-r--r--examples/widgets/mainwindows/application/CMakeLists.txt26
-rw-r--r--examples/widgets/mainwindows/dockwidgets/CMakeLists.txt32
-rw-r--r--examples/widgets/mainwindows/mainwindow/CMakeLists.txt35
-rw-r--r--examples/widgets/mainwindows/mdi/CMakeLists.txt27
-rw-r--r--examples/widgets/mainwindows/menus/CMakeLists.txt16
-rw-r--r--examples/widgets/mainwindows/sdi/CMakeLists.txt26
-rw-r--r--examples/widgets/painting/CMakeLists.txt14
-rw-r--r--examples/widgets/painting/affine/CMakeLists.txt23
-rw-r--r--examples/widgets/painting/basicdrawing/CMakeLists.txt23
-rw-r--r--examples/widgets/painting/composition/CMakeLists.txt23
-rw-r--r--examples/widgets/painting/concentriccircles/CMakeLists.txt17
-rw-r--r--examples/widgets/painting/deform/CMakeLists.txt21
-rw-r--r--examples/widgets/painting/fontsampler/CMakeLists.txt27
-rw-r--r--examples/widgets/painting/gradients/CMakeLists.txt21
-rw-r--r--examples/widgets/painting/imagecomposition/CMakeLists.txt22
-rw-r--r--examples/widgets/painting/painterpaths/CMakeLists.txt26
-rw-r--r--examples/widgets/painting/pathstroke/CMakeLists.txt21
-rw-r--r--examples/widgets/painting/shared/CMakeLists.txt64
-rw-r--r--examples/widgets/painting/transformations/CMakeLists.txt17
-rw-r--r--examples/widgets/richtext/CMakeLists.txt6
-rw-r--r--examples/widgets/richtext/calendar/CMakeLists.txt16
-rw-r--r--examples/widgets/richtext/orderform/CMakeLists.txt25
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt17
-rw-r--r--examples/widgets/richtext/textedit/CMakeLists.txt83
-rw-r--r--examples/widgets/scroller/CMakeLists.txt3
-rw-r--r--examples/widgets/scroller/graphicsview/CMakeLists.txt18
-rw-r--r--examples/widgets/statemachine/CMakeLists.txt11
-rw-r--r--examples/widgets/statemachine/eventtransitions/CMakeLists.txt15
-rw-r--r--examples/widgets/statemachine/factorial/CMakeLists.txt22
-rw-r--r--examples/widgets/statemachine/pingpong/CMakeLists.txt22
-rw-r--r--examples/widgets/statemachine/rogue/CMakeLists.txt17
-rw-r--r--examples/widgets/statemachine/trafficlight/CMakeLists.txt15
-rw-r--r--examples/widgets/statemachine/twowaybutton/CMakeLists.txt15
-rw-r--r--examples/widgets/tools/CMakeLists.txt20
-rw-r--r--examples/widgets/tools/codecs/CMakeLists.txt26
-rw-r--r--examples/widgets/tools/completer/CMakeLists.txt23
-rw-r--r--examples/widgets/tools/customcompleter/CMakeLists.txt22
-rw-r--r--examples/widgets/tools/echoplugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt33
-rw-r--r--examples/widgets/tools/echoplugin/plugin/CMakeLists.txt22
-rw-r--r--examples/widgets/tools/i18n/CMakeLists.txt38
-rw-r--r--examples/widgets/tools/plugandpaint/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt29
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt30
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt27
-rw-r--r--examples/widgets/tools/regexp/CMakeLists.txt16
-rw-r--r--examples/widgets/tools/regularexpression/CMakeLists.txt21
-rw-r--r--examples/widgets/tools/settingseditor/CMakeLists.txt22
-rw-r--r--examples/widgets/tools/styleplugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/styleplugin/plugin/CMakeLists.txt32
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt31
-rw-r--r--examples/widgets/tools/treemodelcompleter/CMakeLists.txt22
-rw-r--r--examples/widgets/tools/undo/CMakeLists.txt46
-rw-r--r--examples/widgets/tools/undoframework/CMakeLists.txt24
-rw-r--r--examples/widgets/touch/CMakeLists.txt6
-rw-r--r--examples/widgets/touch/dials/CMakeLists.txt18
-rw-r--r--examples/widgets/touch/fingerpaint/CMakeLists.txt25
-rw-r--r--examples/widgets/touch/knobs/CMakeLists.txt16
-rw-r--r--examples/widgets/touch/pinchzoom/CMakeLists.txt22
-rw-r--r--examples/widgets/tutorials/CMakeLists.txt7
-rw-r--r--examples/widgets/tutorials/addressbook/CMakeLists.txt9
-rw-r--r--examples/widgets/tutorials/addressbook/part1/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/addressbook/part2/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/addressbook/part3/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/addressbook/part4/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/addressbook/part5/CMakeLists.txt20
-rw-r--r--examples/widgets/tutorials/addressbook/part6/CMakeLists.txt20
-rw-r--r--examples/widgets/tutorials/addressbook/part7/CMakeLists.txt20
-rw-r--r--examples/widgets/tutorials/gettingStarted/CMakeLists.txt2
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/CMakeLists.txt7
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt20
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt19
-rw-r--r--examples/widgets/tutorials/modelview/CMakeLists.txt9
-rw-r--r--examples/widgets/tutorials/notepad/.prev_CMakeLists.txt49
-rw-r--r--examples/widgets/tutorials/notepad/CMakeLists.txt51
-rw-r--r--examples/widgets/tutorials/widgets/CMakeLists.txt6
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt15
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt15
-rw-r--r--examples/widgets/widgets/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/analogclock/CMakeLists.txt19
-rw-r--r--examples/widgets/widgets/calculator/CMakeLists.txt17
-rw-r--r--examples/widgets/widgets/calendarwidget/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/charactermap/CMakeLists.txt17
-rw-r--r--examples/widgets/widgets/codeeditor/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/digitalclock/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/elidedlabel/CMakeLists.txt21
-rw-r--r--examples/widgets/widgets/groupbox/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/icons/CMakeLists.txt24
-rw-r--r--examples/widgets/widgets/imageviewer/CMakeLists.txt24
-rw-r--r--examples/widgets/widgets/lineedits/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/mousebuttons/CMakeLists.txt19
-rw-r--r--examples/widgets/widgets/movie/CMakeLists.txt19
-rw-r--r--examples/widgets/widgets/scribble/CMakeLists.txt25
-rw-r--r--examples/widgets/widgets/shapedclock/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/sliders/CMakeLists.txt17
-rw-r--r--examples/widgets/widgets/spinboxes/CMakeLists.txt16
-rw-r--r--examples/widgets/widgets/styles/CMakeLists.txt23
-rw-r--r--examples/widgets/widgets/stylesheet/CMakeLists.txt58
-rw-r--r--examples/widgets/widgets/tablet/CMakeLists.txt26
-rw-r--r--examples/widgets/widgets/tetrix/CMakeLists.txt18
-rw-r--r--examples/widgets/widgets/tooltips/CMakeLists.txt24
-rw-r--r--examples/widgets/widgets/validators/CMakeLists.txt27
-rw-r--r--examples/widgets/widgets/wiggly/CMakeLists.txt17
-rw-r--r--examples/widgets/widgets/windowflags/CMakeLists.txt17
-rw-r--r--examples/widgets/windowcontainer/CMakeLists.txt18
282 files changed, 5850 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 0000000000..cdbf0c411d
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,25 @@
+add_subdirectory(corelib)
+add_subdirectory(embedded)
+add_subdirectory(qpa)
+
+if(TARGET Qt::DBus)
+ add_subdirectory(dbus)
+endif()
+if(TARGET Qt::Network)
+ add_subdirectory(network)
+endif()
+if(TARGET Qt::Test)
+ add_subdirectory(qtestlib)
+endif()
+if(TARGET Qt::Concurrent)
+ add_subdirectory(qtconcurrent)
+endif()
+if(TARGET Qt::Sql)
+ add_subdirectory(sql)
+endif()
+if(TARGET Qt::Gui)
+ add_subdirectory(gui)
+endif()
+if(TARGET Qt::Widgets)
+ add_subdirectory(widgets)
+endif()
diff --git a/examples/corelib/CMakeLists.txt b/examples/corelib/CMakeLists.txt
new file mode 100644
index 0000000000..3b61d307d9
--- /dev/null
+++ b/examples/corelib/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from corelib.pro.
+
+add_subdirectory(ipc)
+add_subdirectory(mimetypes)
+add_subdirectory(serialization)
+add_subdirectory(threads)
+add_subdirectory(tools)
diff --git a/examples/corelib/ipc/CMakeLists.txt b/examples/corelib/ipc/CMakeLists.txt
new file mode 100644
index 0000000000..b134a3aa17
--- /dev/null
+++ b/examples/corelib/ipc/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from ipc.pro.
+
+
+if(QT_FEATURE_sharedmemory)
+ add_subdirectory(sharedmemory)
+endif()
+
+if(TARGET Qt::Network)
+
+ if(QT_FEATURE_localserver)
+ add_subdirectory(localfortuneserver)
+ add_subdirectory(localfortuneclient)
+ endif()
+endif()
diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
new file mode 100644
index 0000000000..39ef3f4e3f
--- /dev/null
+++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from localfortuneclient.pro.
+
+#####################################################################
+## localfortuneclient Binary:
+#####################################################################
+
+add_qt_executable(localfortuneclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient"
+ SOURCES
+ client.cpp client.h
+ main.cpp
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
new file mode 100644
index 0000000000..e94028413e
--- /dev/null
+++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from localfortuneserver.pro.
+
+#####################################################################
+## localfortuneserver Binary:
+#####################################################################
+
+add_qt_executable(localfortuneserver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver"
+ SOURCES
+ main.cpp
+ server.cpp server.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
new file mode 100644
index 0000000000..a987433302
--- /dev/null
+++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from sharedmemory.pro.
+
+#####################################################################
+## sharedmemory Binary:
+#####################################################################
+
+add_qt_executable(sharedmemory
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory"
+ SOURCES
+ dialog.cpp dialog.h dialog.ui
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:sharedmemory.pro:<TRUE>:
+# EXAMPLE_FILES = "*.png"
diff --git a/examples/corelib/mimetypes/CMakeLists.txt b/examples/corelib/mimetypes/CMakeLists.txt
new file mode 100644
index 0000000000..0b31e0db69
--- /dev/null
+++ b/examples/corelib/mimetypes/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from mimetypes.pro.
+
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(mimetypebrowser)
+endif()
diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
new file mode 100644
index 0000000000..4bd2b5ca6a
--- /dev/null
+++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from mimetypebrowser.pro.
+
+#####################################################################
+## mimetypebrowser Binary:
+#####################################################################
+
+add_qt_executable(mimetypebrowser
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ mimetypemodel.cpp mimetypemodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:mimetypebrowser.pro:<NONE>:
+# CONFIG = "-app_bundle" "c++11"
+# TEMPLATE = "app"
diff --git a/examples/corelib/serialization/CMakeLists.txt b/examples/corelib/serialization/CMakeLists.txt
new file mode 100644
index 0000000000..a64b5130d2
--- /dev/null
+++ b/examples/corelib/serialization/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from serialization.pro.
+
+add_subdirectory(cbordump)
+add_subdirectory(convert)
+add_subdirectory(savegame)
diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt
new file mode 100644
index 0000000000..b62181a2b7
--- /dev/null
+++ b/examples/corelib/serialization/cbordump/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from cbordump.pro.
+
+#####################################################################
+## cbordump Binary:
+#####################################################################
+
+add_qt_executable(cbordump
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ # Remove: gui
+)
+
+#### Keys ignored in scope 1:.:cbordump.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# TEMPLATE = "app"
diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt
new file mode 100644
index 0000000000..4dffb69c5b
--- /dev/null
+++ b/examples/corelib/serialization/convert/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from convert.pro.
+
+#####################################################################
+## convert Binary:
+#####################################################################
+
+add_qt_executable(convert
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert"
+ SOURCES
+ cborconverter.cpp cborconverter.h
+ converter.h
+ datastreamconverter.cpp datastreamconverter.h
+ jsonconverter.cpp jsonconverter.h
+ main.cpp
+ nullconverter.cpp nullconverter.h
+ textconverter.cpp textconverter.h
+ xmlconverter.cpp xmlconverter.h
+ LIBRARIES
+ # Remove: gui
+)
+
+#### Keys ignored in scope 1:.:convert.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# TEMPLATE = "app"
diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt
new file mode 100644
index 0000000000..175fca270f
--- /dev/null
+++ b/examples/corelib/serialization/savegame/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from savegame.pro.
+
+#####################################################################
+## savegame Binary:
+#####################################################################
+
+add_qt_executable(savegame
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame"
+ SOURCES
+ character.cpp character.h
+ game.cpp game.h
+ level.cpp level.h
+ main.cpp
+ LIBRARIES
+ # Remove: gui
+)
+
+#### Keys ignored in scope 1:.:savegame.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# TEMPLATE = "app"
diff --git a/examples/corelib/threads/CMakeLists.txt b/examples/corelib/threads/CMakeLists.txt
new file mode 100644
index 0000000000..b13dd16d93
--- /dev/null
+++ b/examples/corelib/threads/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from threads.pro.
+
+add_subdirectory(semaphores)
+add_subdirectory(waitconditions)
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(mandelbrot)
+ add_subdirectory(queuedcustomtype)
+endif()
diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt
new file mode 100644
index 0000000000..00f27bacd9
--- /dev/null
+++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from mandelbrot.pro.
+
+#####################################################################
+## mandelbrot Binary:
+#####################################################################
+
+add_qt_executable(mandelbrot
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot"
+ SOURCES
+ main.cpp
+ mandelbrotwidget.cpp mandelbrotwidget.h
+ renderthread.cpp renderthread.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(mandelbrot CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
+ LIBRARIES
+ m
+)
diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
new file mode 100644
index 0000000000..b86092bf26
--- /dev/null
+++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from queuedcustomtype.pro.
+
+#####################################################################
+## queuedcustomtype Binary:
+#####################################################################
+
+add_qt_executable(queuedcustomtype
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype"
+ SOURCES
+ block.cpp block.h
+ main.cpp
+ renderthread.cpp renderthread.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt
new file mode 100644
index 0000000000..d94f1ba5b4
--- /dev/null
+++ b/examples/corelib/threads/semaphores/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from semaphores.pro.
+
+#####################################################################
+## semaphores Binary:
+#####################################################################
+
+add_qt_executable(semaphores
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores"
+ SOURCES
+ semaphores.cpp
+)
+
+#### Keys ignored in scope 1:.:semaphores.pro:<NONE>:
+# CONFIG = "-app_bundle" "console"
diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt
new file mode 100644
index 0000000000..0a347c1cdd
--- /dev/null
+++ b/examples/corelib/threads/waitconditions/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from waitconditions.pro.
+
+#####################################################################
+## waitconditions Binary:
+#####################################################################
+
+add_qt_executable(waitconditions
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions"
+ SOURCES
+ waitconditions.cpp
+)
+
+#### Keys ignored in scope 1:.:waitconditions.pro:<NONE>:
+# CONFIG = "-moc" "-app_bundle" "console"
diff --git a/examples/corelib/tools/CMakeLists.txt b/examples/corelib/tools/CMakeLists.txt
new file mode 100644
index 0000000000..d25014ee3c
--- /dev/null
+++ b/examples/corelib/tools/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from tools.pro.
+
+add_subdirectory(contiguouscache)
+add_subdirectory(customtype)
+add_subdirectory(customtypesending)
diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt
new file mode 100644
index 0000000000..68afb7221d
--- /dev/null
+++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from contiguouscache.pro.
+
+#####################################################################
+## contiguouscache Binary:
+#####################################################################
+
+add_qt_executable(contiguouscache
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache"
+ SOURCES
+ main.cpp
+ randomlistmodel.cpp randomlistmodel.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt
new file mode 100644
index 0000000000..e26846da82
--- /dev/null
+++ b/examples/corelib/tools/customtype/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from customtype.pro.
+
+#####################################################################
+## customtype Binary:
+#####################################################################
+
+add_qt_executable(customtype
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype"
+ SOURCES
+ main.cpp
+ message.cpp message.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt
new file mode 100644
index 0000000000..a069f73507
--- /dev/null
+++ b/examples/corelib/tools/customtypesending/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from customtypesending.pro.
+
+#####################################################################
+## customtypesending Binary:
+#####################################################################
+
+add_qt_executable(customtypesending
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending"
+ SOURCES
+ main.cpp
+ message.cpp message.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/dbus/CMakeLists.txt b/examples/dbus/CMakeLists.txt
new file mode 100644
index 0000000000..42a3df658a
--- /dev/null
+++ b/examples/dbus/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from dbus.pro.
+
+add_subdirectory(listnames)
+add_subdirectory(pingpong)
+
+if(QT_FEATURE_process)
+ add_subdirectory(complexpingpong)
+endif()
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(chat)
+ add_subdirectory(remotecontrolledcar)
+endif()
diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt
new file mode 100644
index 0000000000..9f321bbce3
--- /dev/null
+++ b/examples/dbus/chat/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from chat.pro.
+
+#####################################################################
+## chat Binary:
+#####################################################################
+
+add_qt_executable(chat
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat"
+ SOURCES
+ chat.cpp chat.h
+ chatmainwindow.ui
+ chatsetnickname.ui
+ DBUS_ADAPTOR_SOURCES
+ org.example.chat.xml
+ DBUS_INTERFACE_SOURCES
+ org.example.chat.xml
+ PUBLIC_LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt
new file mode 100644
index 0000000000..cccb9584af
--- /dev/null
+++ b/examples/dbus/complexpingpong/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from complexpong.pro.
+
+#####################################################################
+## complexpong Binary:
+#####################################################################
+
+add_qt_executable(complexpong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong"
+ SOURCES
+ complexpong.cpp complexpong.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt
new file mode 100644
index 0000000000..eb622b0ef6
--- /dev/null
+++ b/examples/dbus/listnames/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from listnames.pro.
+
+#####################################################################
+## listnames Binary:
+#####################################################################
+
+add_qt_executable(listnames
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames"
+ SOURCES
+ listnames.cpp
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:listnames.pro:WIN32:
+# CONFIG = "console"
diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt
new file mode 100644
index 0000000000..0979c8d487
--- /dev/null
+++ b/examples/dbus/pingpong/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from pingpong.pro.
+
+#####################################################################
+## ping Binary:
+#####################################################################
+
+add_qt_executable(ping
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ SOURCES
+ ping.cpp
+ ping-common.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+#####################################################################
+## pong Binary:
+#####################################################################
+
+add_qt_executable(pong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong"
+ SOURCES
+ ping-common.h
+ pong.cpp pong.h
+ LIBRARIES
+ # Remove: gui
+ Qt::DBus
+)
+
+if(WIN32)
+endif()
diff --git a/examples/dbus/remotecontrolledcar/CMakeLists.txt b/examples/dbus/remotecontrolledcar/CMakeLists.txt
new file mode 100644
index 0000000000..4d41919962
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from remotecontrolledcar.pro.
+
+add_subdirectory(car)
+add_subdirectory(controller)
diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
new file mode 100644
index 0000000000..a8aed5413a
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from car.pro.
+
+#####################################################################
+## car Binary:
+#####################################################################
+
+add_qt_executable(car
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car"
+ SOURCES
+ car.cpp car.h
+ main.cpp
+ DBUS_ADAPTOR_SOURCES
+ car.xml
+ LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+)
diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
new file mode 100644
index 0000000000..3f360fa51b
--- /dev/null
+++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from controller.pro.
+
+#####################################################################
+## controller Binary:
+#####################################################################
+
+add_qt_executable(controller
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller"
+ SOURCES
+ controller.cpp controller.h controller.ui
+ main.cpp
+ DBUS_INTERFACE_SOURCES
+ car.xml
+ PUBLIC_LIBRARIES
+ Qt::DBus
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
diff --git a/examples/embedded/CMakeLists.txt b/examples/embedded/CMakeLists.txt
new file mode 100644
index 0000000000..bd7720809a
--- /dev/null
+++ b/examples/embedded/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from embedded.pro.
+
+add_subdirectory(styleexample)
+add_subdirectory(raycasting)
+add_subdirectory(flickable)
+add_subdirectory(digiflip)
+add_subdirectory(lightmaps)
+add_subdirectory(flightinfo)
diff --git a/examples/embedded/digiflip/CMakeLists.txt b/examples/embedded/digiflip/CMakeLists.txt
new file mode 100644
index 0000000000..3786ed38a4
--- /dev/null
+++ b/examples/embedded/digiflip/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from digiflip.pro.
+
+#####################################################################
+## digiflip Binary:
+#####################################################################
+
+add_qt_executable(digiflip
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip"
+ SOURCES
+ digiflip.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/embedded/flickable/CMakeLists.txt b/examples/embedded/flickable/CMakeLists.txt
new file mode 100644
index 0000000000..20f8eca9f5
--- /dev/null
+++ b/examples/embedded/flickable/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from flickable.pro.
+
+#####################################################################
+## flickable Binary:
+#####################################################################
+
+add_qt_executable(flickable
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable"
+ SOURCES
+ flickable.cpp flickable.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/embedded/flightinfo/CMakeLists.txt b/examples/embedded/flightinfo/CMakeLists.txt
new file mode 100644
index 0000000000..a4276bf2d8
--- /dev/null
+++ b/examples/embedded/flightinfo/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from flightinfo.pro.
+
+#####################################################################
+## flightinfo Binary:
+#####################################################################
+
+add_qt_executable(flightinfo
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo"
+ SOURCES
+ flightinfo.cpp
+ form.ui
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(flightinfo "flightinfo" PREFIX "/" FILES
+ aircraft.png)
+
+
+#### Keys ignored in scope 1:.:.:flightinfo.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/examples/embedded/lightmaps/CMakeLists.txt b/examples/embedded/lightmaps/CMakeLists.txt
new file mode 100644
index 0000000000..4779d07adc
--- /dev/null
+++ b/examples/embedded/lightmaps/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from lightmaps.pro.
+
+#####################################################################
+## lightmaps Binary:
+#####################################################################
+
+add_qt_executable(lightmaps
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps"
+ SOURCES
+ lightmaps.cpp lightmaps.h
+ main.cpp
+ mapzoom.cpp mapzoom.h
+ slippymap.cpp slippymap.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:lightmaps.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/embedded/raycasting/CMakeLists.txt b/examples/embedded/raycasting/CMakeLists.txt
new file mode 100644
index 0000000000..3757bb756a
--- /dev/null
+++ b/examples/embedded/raycasting/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from raycasting.pro.
+
+#####################################################################
+## raycasting Binary:
+#####################################################################
+
+add_qt_executable(raycasting
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting"
+ SOURCES
+ raycasting.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(raycasting "raycasting" PREFIX "/" FILES
+ textures.png)
+
+
+#### Keys ignored in scope 1:.:raycasting.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/embedded/styleexample/CMakeLists.txt b/examples/embedded/styleexample/CMakeLists.txt
new file mode 100644
index 0000000000..d14acc8b5a
--- /dev/null
+++ b/examples/embedded/styleexample/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from styleexample.pro.
+
+#####################################################################
+## styleexample Binary:
+#####################################################################
+
+add_qt_executable(styleexample
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample"
+ SOURCES
+ main.cpp
+ stylewidget.cpp stylewidget.h stylewidget.ui
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(styleexample "styleexample" PREFIX "/" FILES
+ files/add.png
+ files/application.qss
+ files/blue.qss
+ files/khaki.qss
+ files/nature_1.jpg
+ files/nostyle.qss
+ files/remove.png
+ files/transparent.qss)
+
diff --git a/examples/gui/CMakeLists.txt b/examples/gui/CMakeLists.txt
new file mode 100644
index 0000000000..7ae4c6bc6a
--- /dev/null
+++ b/examples/gui/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from gui.pro.
+
+add_subdirectory(analogclock)
+add_subdirectory(rasterwindow)
+
+if(TARGET Qt::Gui AND QT_FEATURE_opengl)
+ add_subdirectory(openglwindow)
+endif()
diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt
new file mode 100644
index 0000000000..99a879c57a
--- /dev/null
+++ b/examples/gui/analogclock/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from analogclock.pro.
+
+#####################################################################
+## analogclock Binary:
+#####################################################################
+
+add_qt_executable(analogclock
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock"
+ SOURCES
+ ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
+ main.cpp
+ INCLUDE_DIRECTORIES
+ ../rasterwindow
+ LIBRARIES # special case
+ Qt::Gui
+)
+
+#### Keys ignored in scope 1:.:analogclock.pro:<NONE>:
+# CONFIG = "no_batch"
diff --git a/examples/gui/openglwindow/CMakeLists.txt b/examples/gui/openglwindow/CMakeLists.txt
new file mode 100644
index 0000000000..a59ba14346
--- /dev/null
+++ b/examples/gui/openglwindow/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from openglwindow.pro.
+
+#####################################################################
+## openglwindow Binary:
+#####################################################################
+
+add_qt_executable(openglwindow
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow"
+ SOURCES
+ main.cpp
+ openglwindow.cpp openglwindow.h
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ LIBRARIES # special case
+ Qt::Gui
+)
diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt
new file mode 100644
index 0000000000..61255f3038
--- /dev/null
+++ b/examples/gui/rasterwindow/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from rasterwindow.pro.
+
+#####################################################################
+## rasterwindow Binary:
+#####################################################################
+
+add_qt_executable(rasterwindow
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow"
+ SOURCES
+ main.cpp
+ rasterwindow.cpp rasterwindow.h
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ LIBRARIES # special case
+ Qt::Gui
+)
diff --git a/examples/network/CMakeLists.txt b/examples/network/CMakeLists.txt
new file mode 100644
index 0000000000..af1f923dc6
--- /dev/null
+++ b/examples/network/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Generated from network.pro.
+
+add_subdirectory(download)
+add_subdirectory(downloadmanager)
+
+if(NOT INTEGRITY)
+ add_subdirectory(dnslookup)
+endif()
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(blockingfortuneclient)
+ add_subdirectory(broadcastreceiver)
+ add_subdirectory(broadcastsender)
+ add_subdirectory(http)
+ add_subdirectory(loopback)
+ add_subdirectory(threadedfortuneserver)
+ add_subdirectory(googlesuggest)
+ # add_subdirectory(torrent) FIXME: This does not find its ui file:-/
+ add_subdirectory(multicastreceiver)
+ add_subdirectory(multicastsender)
+
+ if(QT_FEATURE_bearermanagement)
+ add_subdirectory(bearermonitor)
+ add_subdirectory(fortuneclient)
+ add_subdirectory(fortuneserver)
+
+ if(QT_FEATURE_processenvironment)
+ add_subdirectory(network-chat)
+ endif()
+ endif()
+
+ if(QT_FEATURE_openssl)
+ add_subdirectory(securesocketclient)
+ endif()
+
+ if(QT_FEATURE_dtls)
+ add_subdirectory(secureudpserver)
+ add_subdirectory(secureudpclient)
+ endif()
+
+ if(QT_FEATURE_sctp)
+ add_subdirectory(multistreamserver)
+ add_subdirectory(multistreamclient)
+ endif()
+endif()
diff --git a/examples/network/bearermonitor/CMakeLists.txt b/examples/network/bearermonitor/CMakeLists.txt
new file mode 100644
index 0000000000..83c45fb21a
--- /dev/null
+++ b/examples/network/bearermonitor/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from bearermonitor.pro.
+
+#####################################################################
+## bearermonitor Binary:
+#####################################################################
+
+add_qt_executable(bearermonitor
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor"
+ SOURCES
+ bearermonitor.cpp bearermonitor.h
+ bearermonitor_240_320.ui
+ bearermonitor_640_480.ui
+ main.cpp
+ sessionwidget.cpp sessionwidget.h sessionwidget.ui
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:bearermonitor.pro:<TRUE>:
+# CONFIG = "console"
+
+## Scopes:
+#####################################################################
+
+extend_target(bearermonitor CONDITION WIN32
+ PUBLIC_LIBRARIES
+ ws2_32
+)
diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt
new file mode 100644
index 0000000000..bedbf2f607
--- /dev/null
+++ b/examples/network/blockingfortuneclient/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from blockingfortuneclient.pro.
+
+#####################################################################
+## blockingfortuneclient Binary:
+#####################################################################
+
+add_qt_executable(blockingfortuneclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient"
+ SOURCES
+ blockingclient.cpp blockingclient.h
+ fortunethread.cpp fortunethread.h
+ main.cpp
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt
new file mode 100644
index 0000000000..197e56cef0
--- /dev/null
+++ b/examples/network/broadcastreceiver/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from broadcastreceiver.pro.
+
+#####################################################################
+## broadcastreceiver Binary:
+#####################################################################
+
+add_qt_executable(broadcastreceiver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver"
+ SOURCES
+ main.cpp
+ receiver.cpp receiver.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt
new file mode 100644
index 0000000000..8fd49d8578
--- /dev/null
+++ b/examples/network/broadcastsender/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from broadcastsender.pro.
+
+#####################################################################
+## broadcastsender Binary:
+#####################################################################
+
+add_qt_executable(broadcastsender
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender"
+ SOURCES
+ main.cpp
+ sender.cpp sender.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt
new file mode 100644
index 0000000000..6ffc633a96
--- /dev/null
+++ b/examples/network/dnslookup/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from dnslookup.pro.
+
+#####################################################################
+## dnslookup Binary:
+#####################################################################
+
+add_qt_executable(dnslookup
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup"
+ SOURCES
+ dnslookup.cpp dnslookup.h
+ LIBRARIES
+ Qt::Network
+)
+
+#### Keys ignored in scope 1:.:dnslookup.pro:<NONE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:dnslookup.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"
+
+#### Keys ignored in scope 3:.:dnslookup.pro:WIN32:
+# CONFIG = "console"
diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt
new file mode 100644
index 0000000000..868685fd0a
--- /dev/null
+++ b/examples/network/download/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from download.pro.
+
+#####################################################################
+## download Binary:
+#####################################################################
+
+add_qt_executable(download
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Network
+)
+
+#### Keys ignored in scope 1:.:download.pro:<NONE>:
+# CONFIG = "-app_bundle"
diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt
new file mode 100644
index 0000000000..a5ccac9178
--- /dev/null
+++ b/examples/network/downloadmanager/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from downloadmanager.pro.
+
+#####################################################################
+## downloadmanager Binary:
+#####################################################################
+
+add_qt_executable(downloadmanager
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager"
+ SOURCES
+ downloadmanager.cpp downloadmanager.h
+ main.cpp
+ textprogressbar.cpp textprogressbar.h
+ LIBRARIES
+ Qt::Network
+)
+
+#### Keys ignored in scope 1:.:downloadmanager.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# OTHER_FILES = "debian/changelog" "debian/compat" "debian/control" "debian/copyright" "debian/README" "debian/rules"
diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt
new file mode 100644
index 0000000000..bbeecf9c64
--- /dev/null
+++ b/examples/network/fortuneclient/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from fortuneclient.pro.
+
+#####################################################################
+## fortuneclient Binary:
+#####################################################################
+
+add_qt_executable(fortuneclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient"
+ SOURCES
+ client.cpp client.h
+ main.cpp
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt
new file mode 100644
index 0000000000..299f43910f
--- /dev/null
+++ b/examples/network/fortuneserver/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from fortuneserver.pro.
+
+#####################################################################
+## fortuneserver Binary:
+#####################################################################
+
+add_qt_executable(fortuneserver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver"
+ SOURCES
+ main.cpp
+ server.cpp server.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt
new file mode 100644
index 0000000000..ef5deedb80
--- /dev/null
+++ b/examples/network/googlesuggest/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from googlesuggest.pro.
+
+#####################################################################
+## googlesuggest Binary:
+#####################################################################
+
+add_qt_executable(googlesuggest
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest"
+ SOURCES
+ googlesuggest.cpp googlesuggest.h
+ main.cpp
+ searchbox.cpp searchbox.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt
new file mode 100644
index 0000000000..30f6b900e2
--- /dev/null
+++ b/examples/network/http/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from http.pro.
+
+#####################################################################
+## http Binary:
+#####################################################################
+
+add_qt_executable(http
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http"
+ SOURCES
+ authenticationdialog.ui
+ httpwindow.cpp httpwindow.h
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt
new file mode 100644
index 0000000000..566b48a76e
--- /dev/null
+++ b/examples/network/loopback/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from loopback.pro.
+
+#####################################################################
+## loopback Binary:
+#####################################################################
+
+add_qt_executable(loopback
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback"
+ SOURCES
+ dialog.cpp dialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt
new file mode 100644
index 0000000000..11204015f2
--- /dev/null
+++ b/examples/network/multicastreceiver/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from multicastreceiver.pro.
+
+#####################################################################
+## multicastreceiver Binary:
+#####################################################################
+
+add_qt_executable(multicastreceiver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver"
+ SOURCES
+ main.cpp
+ receiver.cpp receiver.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt
new file mode 100644
index 0000000000..e02a6b7145
--- /dev/null
+++ b/examples/network/multicastsender/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from multicastsender.pro.
+
+#####################################################################
+## multicastsender Binary:
+#####################################################################
+
+add_qt_executable(multicastsender
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender"
+ SOURCES
+ main.cpp
+ sender.cpp sender.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt
new file mode 100644
index 0000000000..b9f10f3fd5
--- /dev/null
+++ b/examples/network/multistreamclient/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from multistreamclient.pro.
+
+#####################################################################
+## multistreamclient Binary:
+#####################################################################
+
+add_qt_executable(multistreamclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient"
+ SOURCES
+ chatconsumer.cpp chatconsumer.h
+ client.cpp client.h
+ consumer.h
+ main.cpp
+ movieconsumer.cpp movieconsumer.h
+ timeconsumer.cpp timeconsumer.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt
new file mode 100644
index 0000000000..3475995178
--- /dev/null
+++ b/examples/network/multistreamserver/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from multistreamserver.pro.
+
+#####################################################################
+## multistreamserver Binary:
+#####################################################################
+
+add_qt_executable(multistreamserver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver"
+ SOURCES
+ chatprovider.cpp chatprovider.h
+ main.cpp
+ movieprovider.cpp movieprovider.h
+ provider.h
+ server.cpp server.h
+ timeprovider.cpp timeprovider.h
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:multistreamserver.pro:<NONE>:
+# EXAMPLE_FILES = "animation.gif"
diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt
new file mode 100644
index 0000000000..d620d899d1
--- /dev/null
+++ b/examples/network/network-chat/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from network-chat.pro.
+
+#####################################################################
+## network-chat Binary:
+#####################################################################
+
+add_qt_executable(network-chat
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat"
+ SOURCES
+ chatdialog.cpp chatdialog.h chatdialog.ui
+ client.cpp client.h
+ connection.cpp connection.h
+ main.cpp
+ peermanager.cpp peermanager.h
+ server.cpp server.h
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt
new file mode 100644
index 0000000000..fd9a12e4bb
--- /dev/null
+++ b/examples/network/securesocketclient/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from securesocketclient.pro.
+
+#####################################################################
+## securesocketclient Binary:
+#####################################################################
+
+add_qt_executable(securesocketclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient"
+ SOURCES
+ certificateinfo.cpp certificateinfo.h certificateinfo.ui
+ main.cpp
+ sslclient.cpp sslclient.h sslclient.ui
+ sslerrors.ui
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(securesocketclient "securesocketclient" FILES
+ encrypted.png)
+
diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt
new file mode 100644
index 0000000000..5516b36cc3
--- /dev/null
+++ b/examples/network/secureudpclient/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from secureudpclient.pro.
+
+#####################################################################
+## secureudpclient Binary:
+#####################################################################
+
+add_qt_executable(secureudpclient
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient"
+ SOURCES
+ addressdialog.cpp addressdialog.h addressdialog.ui
+ association.cpp association.h
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:secureudpclient.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt
new file mode 100644
index 0000000000..6d4968c9f7
--- /dev/null
+++ b/examples/network/secureudpserver/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from secureudpserver.pro.
+
+#####################################################################
+## secureudpserver Binary:
+#####################################################################
+
+add_qt_executable(secureudpserver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ nicselector.cpp nicselector.h nicselector.ui
+ server.cpp server.h
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:secureudpserver.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt
new file mode 100644
index 0000000000..124ac1d1cc
--- /dev/null
+++ b/examples/network/threadedfortuneserver/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from threadedfortuneserver.pro.
+
+#####################################################################
+## threadedfortuneserver Binary:
+#####################################################################
+
+add_qt_executable(threadedfortuneserver
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver"
+ SOURCES
+ dialog.cpp dialog.h
+ fortuneserver.cpp fortuneserver.h
+ fortunethread.cpp fortunethread.h
+ main.cpp
+ LIBRARIES
+ Qt::Network
+ Qt::Widgets
+)
diff --git a/examples/network/torrent/.prev_CMakeLists.txt b/examples/network/torrent/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..5d23f5e74b
--- /dev/null
+++ b/examples/network/torrent/.prev_CMakeLists.txt
@@ -0,0 +1,42 @@
+# Generated from torrent.pro.
+
+#####################################################################
+## torrent Binary:
+#####################################################################
+
+add_qt_executable(torrent
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
+ SOURCES
+ addtorrentdialog.cpp addtorrentdialog.h
+ bencodeparser.cpp bencodeparser.h
+ connectionmanager.cpp connectionmanager.h
+ filemanager.cpp filemanager.h
+ forms/addtorrentform.ui
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ metainfo.cpp metainfo.h
+ peerwireclient.cpp peerwireclient.h
+ ratecontroller.cpp ratecontroller.h
+ torrentclient.cpp torrentclient.h
+ torrentserver.cpp torrentserver.h
+ trackerclient.cpp trackerclient.h
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(torrent "icons" PREFIX "/" FILES
+ icons/1downarrow.png
+ icons/1uparrow.png
+ icons/bottom.png
+ icons/exit.png
+ icons/peertopeer.png
+ icons/player_pause.png
+ icons/player_play.png
+ icons/player_stop.png)
+
diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt
new file mode 100644
index 0000000000..448335e7aa
--- /dev/null
+++ b/examples/network/torrent/CMakeLists.txt
@@ -0,0 +1,44 @@
+# Generated from torrent.pro.
+
+#####################################################################
+## torrent Binary:
+#####################################################################
+
+add_qt_executable(torrent
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent"
+ SOURCES
+ addtorrentdialog.cpp addtorrentdialog.h
+ bencodeparser.cpp bencodeparser.h
+ connectionmanager.cpp connectionmanager.h
+ filemanager.cpp filemanager.h
+ forms/addtorrentform.ui
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ metainfo.cpp metainfo.h
+ peerwireclient.cpp peerwireclient.h
+ ratecontroller.cpp ratecontroller.h
+ torrentclient.cpp torrentclient.h
+ torrentserver.cpp torrentserver.h
+ trackerclient.cpp trackerclient.h
+ INCLUDE_DIRECTORIES # special case
+ forms # special case
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(torrent "icons" PREFIX "/" FILES
+ icons/1downarrow.png
+ icons/1uparrow.png
+ icons/bottom.png
+ icons/exit.png
+ icons/peertopeer.png
+ icons/player_pause.png
+ icons/player_play.png
+ icons/player_stop.png)
+
diff --git a/examples/qpa/CMakeLists.txt b/examples/qpa/CMakeLists.txt
new file mode 100644
index 0000000000..0ae7f61e57
--- /dev/null
+++ b/examples/qpa/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from qpa.pro.
+
+add_subdirectory(windows)
+add_subdirectory(qrasterwindow)
diff --git a/examples/qpa/qrasterwindow/CMakeLists.txt b/examples/qpa/qrasterwindow/CMakeLists.txt
new file mode 100644
index 0000000000..0eae5b28af
--- /dev/null
+++ b/examples/qpa/qrasterwindow/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from qrasterwindow.pro.
+
+#####################################################################
+## qrasterwindow Binary:
+#####################################################################
+
+add_qt_executable(qrasterwindow
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Gui # special case
+)
diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt
new file mode 100644
index 0000000000..55135e02ff
--- /dev/null
+++ b/examples/qpa/windows/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from windows.pro.
+
+#####################################################################
+## windows Binary:
+#####################################################################
+
+add_qt_executable(windows
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::GuiPrivate
+ Qt::CorePrivate
+)
+
+#### Keys ignored in scope 1:.:windows.pro:<NONE>:
+# CONFIG = "console"
diff --git a/examples/qtconcurrent/CMakeLists.txt b/examples/qtconcurrent/CMakeLists.txt
new file mode 100644
index 0000000000..13cfed8773
--- /dev/null
+++ b/examples/qtconcurrent/CMakeLists.txt
@@ -0,0 +1,9 @@
+if(TARGET Qt::Gui)
+ add_subdirectory(map)
+endif()
+if(TARGET Qt::Widgets)
+ add_subdirectory(imagescaling)
+ add_subdirectory(progressdialog)
+ add_subdirectory(runfunction)
+ add_subdirectory(wordcount)
+endif()
diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt
new file mode 100644
index 0000000000..0de3f26c5e
--- /dev/null
+++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from imagescaling.pro.
+
+#####################################################################
+## imagescaling Binary:
+#####################################################################
+
+add_qt_executable(imagescaling
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling"
+ SOURCES
+ imagescaling.cpp imagescaling.h
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt
new file mode 100644
index 0000000000..147b91236b
--- /dev/null
+++ b/examples/qtconcurrent/map/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from map.pro.
+
+#####################################################################
+## mapdemo Binary:
+#####################################################################
+
+add_qt_executable(mapdemo
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Gui # special case
+)
+
+#### Keys ignored in scope 1:.:map.pro:<NONE>:
+# CONFIG = "-app_bundle"
+# TEMPLATE = "app"
diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt
new file mode 100644
index 0000000000..3aae4af084
--- /dev/null
+++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from progressdialog.pro.
+
+#####################################################################
+## progressdialog Binary:
+#####################################################################
+
+add_qt_executable(progressdialog
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:progressdialog.pro:<NONE>:
+# CONFIG = "console"
diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt
new file mode 100644
index 0000000000..c400b44cf6
--- /dev/null
+++ b/examples/qtconcurrent/runfunction/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from runfunction.pro.
+
+#####################################################################
+## runfunction Binary:
+#####################################################################
+
+add_qt_executable(runfunction
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:runfunction.pro:<NONE>:
+# CONFIG = "-app_bundle"
diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt
new file mode 100644
index 0000000000..9bb2ac58d7
--- /dev/null
+++ b/examples/qtconcurrent/wordcount/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from wordcount.pro.
+
+#####################################################################
+## wordcount Binary:
+#####################################################################
+
+add_qt_executable(wordcount
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Concurrent
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:wordcount.pro:<NONE>:
+# CONFIG = "-app_bundle"
diff --git a/examples/qtestlib/CMakeLists.txt b/examples/qtestlib/CMakeLists.txt
new file mode 100644
index 0000000000..83e7df5768
--- /dev/null
+++ b/examples/qtestlib/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from qtestlib.pro.
+
+add_subdirectory(tutorial1)
+add_subdirectory(tutorial2)
+add_subdirectory(tutorial3)
+add_subdirectory(tutorial4)
+add_subdirectory(tutorial5)
diff --git a/examples/qtestlib/tutorial1/CMakeLists.txt b/examples/qtestlib/tutorial1/CMakeLists.txt
new file mode 100644
index 0000000000..6e489e329f
--- /dev/null
+++ b/examples/qtestlib/tutorial1/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tutorial1.pro.
+
+#####################################################################
+## tutorial1 Binary:
+#####################################################################
+
+add_qt_executable(tutorial1
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1"
+ SOURCES
+ testqstring.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::Test
+)
diff --git a/examples/qtestlib/tutorial2/CMakeLists.txt b/examples/qtestlib/tutorial2/CMakeLists.txt
new file mode 100644
index 0000000000..06288ce50b
--- /dev/null
+++ b/examples/qtestlib/tutorial2/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tutorial2.pro.
+
+#####################################################################
+## tutorial2 Binary:
+#####################################################################
+
+add_qt_executable(tutorial2
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2"
+ SOURCES
+ testqstring.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::Test
+)
diff --git a/examples/qtestlib/tutorial3/CMakeLists.txt b/examples/qtestlib/tutorial3/CMakeLists.txt
new file mode 100644
index 0000000000..79683e0cfc
--- /dev/null
+++ b/examples/qtestlib/tutorial3/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tutorial3.pro.
+
+#####################################################################
+## tutorial3 Binary:
+#####################################################################
+
+add_qt_executable(tutorial3
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3"
+ SOURCES
+ testgui.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::Test
+)
diff --git a/examples/qtestlib/tutorial4/CMakeLists.txt b/examples/qtestlib/tutorial4/CMakeLists.txt
new file mode 100644
index 0000000000..2f3d2bb88a
--- /dev/null
+++ b/examples/qtestlib/tutorial4/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tutorial4.pro.
+
+#####################################################################
+## tutorial4 Binary:
+#####################################################################
+
+add_qt_executable(tutorial4
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4"
+ SOURCES
+ testgui.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::Test
+)
diff --git a/examples/qtestlib/tutorial5/CMakeLists.txt b/examples/qtestlib/tutorial5/CMakeLists.txt
new file mode 100644
index 0000000000..e4af9b354c
--- /dev/null
+++ b/examples/qtestlib/tutorial5/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tutorial5.pro.
+
+#####################################################################
+## tutorial5 Binary:
+#####################################################################
+
+add_qt_executable(tutorial5
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5"
+ SOURCES
+ benchmarking.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::Test
+)
diff --git a/examples/sql/CMakeLists.txt b/examples/sql/CMakeLists.txt
new file mode 100644
index 0000000000..ca15f22baf
--- /dev/null
+++ b/examples/sql/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from sql.pro.
+
+add_subdirectory(books)
+add_subdirectory(drilldown)
+add_subdirectory(cachedtable)
+add_subdirectory(querymodel)
+add_subdirectory(relationaltablemodel)
+add_subdirectory(sqlwidgetmapper)
+add_subdirectory(tablemodel)
+
+if(TARGET Qt::Xml)
+ add_subdirectory(masterdetail)
+endif()
+
+if(NOT CMAKE_CROSSCOMPILING) # special case
+ add_subdirectory(sqlbrowser)
+endif()
diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt
new file mode 100644
index 0000000000..7a25b95cde
--- /dev/null
+++ b/examples/sql/books/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from books.pro.
+
+#####################################################################
+## books Binary:
+#####################################################################
+
+add_qt_executable(books
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
+ SOURCES
+ bookdelegate.cpp bookdelegate.h
+ bookwindow.cpp bookwindow.h bookwindow.ui
+ initdb.h
+ main.cpp
+ INCLUDE_DIRECTORIES
+ .
+ PUBLIC_LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(books "books" PREFIX "/" FILES
+ images/star.png)
+
+
+#### Keys ignored in scope 1:.:.:books.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt
new file mode 100644
index 0000000000..8e87a32211
--- /dev/null
+++ b/examples/sql/cachedtable/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from cachedtable.pro.
+
+#####################################################################
+## cachedtable Binary:
+#####################################################################
+
+add_qt_executable(cachedtable
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
+ SOURCES
+ ../connection.h
+ main.cpp
+ tableeditor.cpp tableeditor.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt
new file mode 100644
index 0000000000..a4301d3474
--- /dev/null
+++ b/examples/sql/drilldown/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from drilldown.pro.
+
+#####################################################################
+## drilldown Binary:
+#####################################################################
+
+add_qt_executable(drilldown
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
+ SOURCES
+ ../connection.h
+ imageitem.cpp imageitem.h
+ informationwindow.cpp informationwindow.h
+ main.cpp
+ view.cpp view.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(drilldown "drilldown" PREFIX "/" FILES
+ images/qt-creator.png
+ images/qt-logo.png
+ images/qt-project.png
+ images/qt-quick.png)
+
diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt
new file mode 100644
index 0000000000..8c73675e55
--- /dev/null
+++ b/examples/sql/masterdetail/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from masterdetail.pro.
+
+#####################################################################
+## masterdetail Binary:
+#####################################################################
+
+add_qt_executable(masterdetail
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
+ SOURCES
+ database.h
+ dialog.cpp dialog.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+ Qt::Xml
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(masterdetail "masterdetail" FILES
+ images/icon.png
+ images/image.png)
+
+
+#### Keys ignored in scope 1:.:masterdetail.pro:<NONE>:
+# EXAMPLE_FILES = "albumdetails.xml"
diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt
new file mode 100644
index 0000000000..5c9d48c7f1
--- /dev/null
+++ b/examples/sql/querymodel/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from querymodel.pro.
+
+#####################################################################
+## querymodel Binary:
+#####################################################################
+
+add_qt_executable(querymodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
+ SOURCES
+ ../connection.h
+ customsqlmodel.cpp customsqlmodel.h
+ editablesqlmodel.cpp editablesqlmodel.h
+ main.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt
new file mode 100644
index 0000000000..d31042cc73
--- /dev/null
+++ b/examples/sql/relationaltablemodel/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from relationaltablemodel.pro.
+
+#####################################################################
+## relationaltablemodel Binary:
+#####################################################################
+
+add_qt_executable(relationaltablemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
+ SOURCES
+ ../connection.h
+ relationaltablemodel.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt
new file mode 100644
index 0000000000..a2e0ed951d
--- /dev/null
+++ b/examples/sql/sqlbrowser/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from sqlbrowser.pro.
+
+#####################################################################
+## sqlbrowser Binary:
+#####################################################################
+
+add_qt_executable(sqlbrowser
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
+ SOURCES
+ browser.cpp browser.h
+ browserwidget.ui
+ connectionwidget.cpp connectionwidget.h
+ main.cpp
+ qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
+ PUBLIC_LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:sqlbrowser.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:sqlbrowser.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt
new file mode 100644
index 0000000000..41d95da21e
--- /dev/null
+++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from sqlwidgetmapper.pro.
+
+#####################################################################
+## sqlwidgetmapper Binary:
+#####################################################################
+
+add_qt_executable(sqlwidgetmapper
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt
new file mode 100644
index 0000000000..68644a4b3d
--- /dev/null
+++ b/examples/sql/tablemodel/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from tablemodel.pro.
+
+#####################################################################
+## tablemodel Binary:
+#####################################################################
+
+add_qt_executable(tablemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
+ SOURCES
+ ../connection.h
+ tablemodel.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/widgets/CMakeLists.txt b/examples/widgets/CMakeLists.txt
new file mode 100644
index 0000000000..1b18fc8622
--- /dev/null
+++ b/examples/widgets/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from widgets.pro.
+
+add_subdirectory(animation)
+add_subdirectory(desktop)
+add_subdirectory(dialogs)
+if(QT_FEATURE_draganddrop) # special case
+ add_subdirectory(draganddrop)
+endif()
+add_subdirectory(effects)
+add_subdirectory(gestures)
+add_subdirectory(graphicsview)
+add_subdirectory(itemviews)
+add_subdirectory(layouts)
+add_subdirectory(painting)
+add_subdirectory(richtext)
+add_subdirectory(scroller)
+add_subdirectory(statemachine)
+add_subdirectory(tools)
+add_subdirectory(touch)
+add_subdirectory(tutorials)
+add_subdirectory(widgets)
+
+if(TARGET Qt::Gui AND QT_FEATURE_opengl)
+ add_subdirectory(windowcontainer)
+endif()
+
+if(QT_FEATURE_cursor) # special case
+ add_subdirectory(mainwindows)
+endif()
+
+if(APPLE_OSX)
+ add_subdirectory(mac)
+endif()
diff --git a/examples/widgets/animation/CMakeLists.txt b/examples/widgets/animation/CMakeLists.txt
new file mode 100644
index 0000000000..15f62728da
--- /dev/null
+++ b/examples/widgets/animation/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from animation.pro.
+
+add_subdirectory(animatedtiles)
+add_subdirectory(easing)
+add_subdirectory(moveblocks)
+add_subdirectory(states)
+add_subdirectory(stickman)
+add_subdirectory(sub-attaq)
diff --git a/examples/widgets/animation/animatedtiles/CMakeLists.txt b/examples/widgets/animation/animatedtiles/CMakeLists.txt
new file mode 100644
index 0000000000..0af95adcf8
--- /dev/null
+++ b/examples/widgets/animation/animatedtiles/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from animatedtiles.pro.
+
+#####################################################################
+## animatedtiles Binary:
+#####################################################################
+
+add_qt_executable(animatedtiles
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/animatedtiles"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(animatedtiles "animatedtiles" FILES
+ images/Time-For-Lunch-2.jpg
+ images/centered.png
+ images/ellipse.png
+ images/figure8.png
+ images/kinetic.png
+ images/random.png
+ images/tile.png)
+
diff --git a/examples/widgets/animation/easing/CMakeLists.txt b/examples/widgets/animation/easing/CMakeLists.txt
new file mode 100644
index 0000000000..b7444412a6
--- /dev/null
+++ b/examples/widgets/animation/easing/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from easing.pro.
+
+#####################################################################
+## easing Binary:
+#####################################################################
+
+add_qt_executable(easing
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/easing"
+ SOURCES
+ animation.h
+ form.ui
+ main.cpp
+ window.cpp window.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(easing "easing" FILES
+ images/qt-logo.png)
+
diff --git a/examples/widgets/animation/moveblocks/CMakeLists.txt b/examples/widgets/animation/moveblocks/CMakeLists.txt
new file mode 100644
index 0000000000..5cbb8f4936
--- /dev/null
+++ b/examples/widgets/animation/moveblocks/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from moveblocks.pro.
+
+#####################################################################
+## moveblocks Binary:
+#####################################################################
+
+add_qt_executable(moveblocks
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/moveblocks"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/animation/states/CMakeLists.txt b/examples/widgets/animation/states/CMakeLists.txt
new file mode 100644
index 0000000000..52a9357789
--- /dev/null
+++ b/examples/widgets/animation/states/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from states.pro.
+
+#####################################################################
+## states Binary:
+#####################################################################
+
+add_qt_executable(states
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/states"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(states "states" FILES
+ accessories-dictionary.png
+ akregator.png
+ digikam.png
+ help-browser.png
+ k3b.png
+ kchart.png)
+
diff --git a/examples/widgets/animation/stickman/CMakeLists.txt b/examples/widgets/animation/stickman/CMakeLists.txt
new file mode 100644
index 0000000000..f604598232
--- /dev/null
+++ b/examples/widgets/animation/stickman/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from stickman.pro.
+
+#####################################################################
+## stickman Binary:
+#####################################################################
+
+add_qt_executable(stickman
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/stickman"
+ SOURCES
+ animation.cpp animation.h
+ graphicsview.cpp graphicsview.h
+ lifecycle.cpp lifecycle.h
+ main.cpp
+ node.cpp node.h
+ rectbutton.cpp rectbutton.h
+ stickman.cpp stickman.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(stickman "stickman" FILES
+ animations/chilling.bin
+ animations/dancing.bin
+ animations/dead.bin
+ animations/jumping.bin)
+
diff --git a/examples/widgets/animation/sub-attaq/CMakeLists.txt b/examples/widgets/animation/sub-attaq/CMakeLists.txt
new file mode 100644
index 0000000000..e7cb602e19
--- /dev/null
+++ b/examples/widgets/animation/sub-attaq/CMakeLists.txt
@@ -0,0 +1,142 @@
+# Generated from sub-attaq.pro.
+
+#####################################################################
+## sub-attaq Binary:
+#####################################################################
+
+add_qt_executable(sub-attaq
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/animation/sub-attaq"
+ SOURCES
+ animationmanager.cpp animationmanager.h
+ boat.cpp boat.h boat_p.h
+ bomb.cpp bomb.h
+ graphicsscene.cpp graphicsscene.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ pixmapitem.cpp pixmapitem.h
+ progressitem.cpp progressitem.h
+ qanimationstate.cpp qanimationstate.h
+ states.cpp states.h
+ submarine.cpp submarine.h submarine_p.h
+ textinformationitem.cpp textinformationitem.h
+ torpedo.cpp torpedo.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+set_source_files_properties("pics/big/background.png"
+ PROPERTIES alias "big/background")
+set_source_files_properties("pics/big/boat.png"
+ PROPERTIES alias "big/boat")
+set_source_files_properties("pics/big/bomb.png"
+ PROPERTIES alias "big/bomb")
+set_source_files_properties("pics/big/explosion/boat/step1.png"
+ PROPERTIES alias "big/explosion/boat/step1")
+set_source_files_properties("pics/big/explosion/boat/step2.png"
+ PROPERTIES alias "big/explosion/boat/step2")
+set_source_files_properties("pics/big/explosion/boat/step3.png"
+ PROPERTIES alias "big/explosion/boat/step3")
+set_source_files_properties("pics/big/explosion/boat/step4.png"
+ PROPERTIES alias "big/explosion/boat/step4")
+set_source_files_properties("pics/big/explosion/submarine/step1.png"
+ PROPERTIES alias "big/explosion/submarine/step1")
+set_source_files_properties("pics/big/explosion/submarine/step2.png"
+ PROPERTIES alias "big/explosion/submarine/step2")
+set_source_files_properties("pics/big/explosion/submarine/step3.png"
+ PROPERTIES alias "big/explosion/submarine/step3")
+set_source_files_properties("pics/big/explosion/submarine/step4.png"
+ PROPERTIES alias "big/explosion/submarine/step4")
+set_source_files_properties("pics/big/submarine.png"
+ PROPERTIES alias "big/submarine")
+set_source_files_properties("pics/big/surface.png"
+ PROPERTIES alias "big/surface")
+set_source_files_properties("pics/big/torpedo.png"
+ PROPERTIES alias "big/torpedo")
+set_source_files_properties("pics/scalable/boat.svg"
+ PROPERTIES alias "boat")
+set_source_files_properties("pics/scalable/sub-attaq.svg"
+ PROPERTIES alias "all")
+set_source_files_properties("pics/scalable/submarine.svg"
+ PROPERTIES alias "submarine")
+set_source_files_properties("pics/scalable/torpedo.svg"
+ PROPERTIES alias "torpedo")
+set_source_files_properties("pics/small/background.png"
+ PROPERTIES alias "small/background")
+set_source_files_properties("pics/small/boat.png"
+ PROPERTIES alias "small/boat")
+set_source_files_properties("pics/small/bomb.png"
+ PROPERTIES alias "small/bomb")
+set_source_files_properties("pics/small/submarine.png"
+ PROPERTIES alias "small/submarine")
+set_source_files_properties("pics/small/surface.png"
+ PROPERTIES alias "small/surface")
+set_source_files_properties("pics/small/torpedo.png"
+ PROPERTIES alias "small/torpedo")
+set_source_files_properties("pics/welcome/logo-a.png"
+ PROPERTIES alias "logo-a")
+set_source_files_properties("pics/welcome/logo-a2.png"
+ PROPERTIES alias "logo-a2")
+set_source_files_properties("pics/welcome/logo-b.png"
+ PROPERTIES alias "logo-b")
+set_source_files_properties("pics/welcome/logo-dash.png"
+ PROPERTIES alias "logo-dash")
+set_source_files_properties("pics/welcome/logo-excl.png"
+ PROPERTIES alias "logo-excl")
+set_source_files_properties("pics/welcome/logo-q.png"
+ PROPERTIES alias "logo-q")
+set_source_files_properties("pics/welcome/logo-s.png"
+ PROPERTIES alias "logo-s")
+set_source_files_properties("pics/welcome/logo-t.png"
+ PROPERTIES alias "logo-t")
+set_source_files_properties("pics/welcome/logo-t2.png"
+ PROPERTIES alias "logo-t2")
+set_source_files_properties("pics/welcome/logo-u.png"
+ PROPERTIES alias "logo-u")
+add_qt_resource(sub-attaq "subattaq" PREFIX "/" FILES
+ data.xml
+ pics/big/background.png
+ pics/big/boat.png
+ pics/big/bomb.png
+ pics/big/explosion/boat/step1.png
+ pics/big/explosion/boat/step2.png
+ pics/big/explosion/boat/step3.png
+ pics/big/explosion/boat/step4.png
+ pics/big/explosion/submarine/step1.png
+ pics/big/explosion/submarine/step2.png
+ pics/big/explosion/submarine/step3.png
+ pics/big/explosion/submarine/step4.png
+ pics/big/submarine.png
+ pics/big/surface.png
+ pics/big/torpedo.png
+ pics/scalable/boat.svg
+ pics/scalable/sub-attaq.svg
+ pics/scalable/submarine.svg
+ pics/scalable/torpedo.svg
+ pics/small/background.png
+ pics/small/boat.png
+ pics/small/bomb.png
+ pics/small/submarine.png
+ pics/small/surface.png
+ pics/small/torpedo.png
+ pics/welcome/logo-a.png
+ pics/welcome/logo-a2.png
+ pics/welcome/logo-b.png
+ pics/welcome/logo-dash.png
+ pics/welcome/logo-excl.png
+ pics/welcome/logo-q.png
+ pics/welcome/logo-s.png
+ pics/welcome/logo-t.png
+ pics/welcome/logo-t2.png
+ pics/welcome/logo-u.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(sub-attaq CONDITION TARGET Qt::OpenGL
+ LIBRARIES
+ Qt::OpenGL
+)
diff --git a/examples/widgets/desktop/CMakeLists.txt b/examples/widgets/desktop/CMakeLists.txt
new file mode 100644
index 0000000000..a50d3c2f0a
--- /dev/null
+++ b/examples/widgets/desktop/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from desktop.pro.
+
+add_subdirectory(screenshot)
+add_subdirectory(systray)
diff --git a/examples/widgets/desktop/screenshot/CMakeLists.txt b/examples/widgets/desktop/screenshot/CMakeLists.txt
new file mode 100644
index 0000000000..1956e3800e
--- /dev/null
+++ b/examples/widgets/desktop/screenshot/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from screenshot.pro.
+
+#####################################################################
+## screenshot Binary:
+#####################################################################
+
+add_qt_executable(screenshot
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/screenshot"
+ SOURCES
+ main.cpp
+ screenshot.cpp screenshot.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/desktop/systray/CMakeLists.txt b/examples/widgets/desktop/systray/CMakeLists.txt
new file mode 100644
index 0000000000..9f5d05e751
--- /dev/null
+++ b/examples/widgets/desktop/systray/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from systray.pro.
+
+#####################################################################
+## systray Binary:
+#####################################################################
+
+add_qt_executable(systray
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/desktop/systray"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(systray "systray" PREFIX "/" FILES
+ images/bad.png
+ images/heart.png
+ images/trash.png)
+
diff --git a/examples/widgets/dialogs/CMakeLists.txt b/examples/widgets/dialogs/CMakeLists.txt
new file mode 100644
index 0000000000..c9d6823adc
--- /dev/null
+++ b/examples/widgets/dialogs/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from dialogs.pro.
+
+add_subdirectory(extension)
+add_subdirectory(findfiles)
+if(TARGET Qt::PrintSupport AND QT_FEATURE_wizard) # special case
+ add_subdirectory(licensewizard)
+endif()
+add_subdirectory(standarddialogs)
+add_subdirectory(tabdialog)
+
+if(QT_FEATURE_wizard) # special case
+ add_subdirectory(classwizard)
+ add_subdirectory(trivialwizard)
+endif()
diff --git a/examples/widgets/dialogs/classwizard/CMakeLists.txt b/examples/widgets/dialogs/classwizard/CMakeLists.txt
new file mode 100644
index 0000000000..6d1cf9bab8
--- /dev/null
+++ b/examples/widgets/dialogs/classwizard/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from classwizard.pro.
+
+#####################################################################
+## classwizard Binary:
+#####################################################################
+
+add_qt_executable(classwizard
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/classwizard"
+ SOURCES
+ classwizard.cpp classwizard.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(classwizard "classwizard" FILES
+ images/background.png
+ images/banner.png
+ images/logo1.png
+ images/logo2.png
+ images/logo3.png
+ images/watermark1.png
+ images/watermark2.png)
+
diff --git a/examples/widgets/dialogs/extension/CMakeLists.txt b/examples/widgets/dialogs/extension/CMakeLists.txt
new file mode 100644
index 0000000000..400cf23989
--- /dev/null
+++ b/examples/widgets/dialogs/extension/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from extension.pro.
+
+#####################################################################
+## extension Binary:
+#####################################################################
+
+add_qt_executable(extension
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/extension"
+ SOURCES
+ finddialog.cpp finddialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/dialogs/findfiles/CMakeLists.txt b/examples/widgets/dialogs/findfiles/CMakeLists.txt
new file mode 100644
index 0000000000..26442a71b1
--- /dev/null
+++ b/examples/widgets/dialogs/findfiles/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from findfiles.pro.
+
+#####################################################################
+## findfiles Binary:
+#####################################################################
+
+add_qt_executable(findfiles
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/findfiles"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/dialogs/licensewizard/CMakeLists.txt b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
new file mode 100644
index 0000000000..78b8cb7f51
--- /dev/null
+++ b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from licensewizard.pro.
+
+#####################################################################
+## licensewizard Binary:
+#####################################################################
+
+add_qt_executable(licensewizard
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/licensewizard"
+ SOURCES
+ licensewizard.cpp licensewizard.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+ Qt::PrintSupport
+)
+
+# Resources:
+add_qt_resource(licensewizard "licensewizard" FILES
+ images/logo.png
+ images/watermark.png)
+
diff --git a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
new file mode 100644
index 0000000000..3c0ddc0199
--- /dev/null
+++ b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from standarddialogs.pro.
+
+#####################################################################
+## standarddialogs Binary:
+#####################################################################
+
+add_qt_executable(standarddialogs
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/standarddialogs"
+ SOURCES
+ dialog.cpp dialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/dialogs/tabdialog/CMakeLists.txt b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
new file mode 100644
index 0000000000..a8cbbb4b4e
--- /dev/null
+++ b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from tabdialog.pro.
+
+#####################################################################
+## tabdialog Binary:
+#####################################################################
+
+add_qt_executable(tabdialog
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/tabdialog"
+ SOURCES
+ main.cpp
+ tabdialog.cpp tabdialog.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
new file mode 100644
index 0000000000..2deae77c0d
--- /dev/null
+++ b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from trivialwizard.pro.
+
+#####################################################################
+## trivialwizard Binary:
+#####################################################################
+
+add_qt_executable(trivialwizard
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/dialogs/trivialwizard"
+ SOURCES
+ trivialwizard.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/draganddrop/CMakeLists.txt b/examples/widgets/draganddrop/CMakeLists.txt
new file mode 100644
index 0000000000..fbad523a73
--- /dev/null
+++ b/examples/widgets/draganddrop/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from draganddrop.pro.
+
+add_subdirectory(draggableicons)
+add_subdirectory(draggabletext)
+add_subdirectory(dropsite)
+add_subdirectory(fridgemagnets)
+add_subdirectory(puzzle)
diff --git a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
new file mode 100644
index 0000000000..62a7be0cef
--- /dev/null
+++ b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from draggableicons.pro.
+
+#####################################################################
+## draggableicons Binary:
+#####################################################################
+
+add_qt_executable(draggableicons
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggableicons"
+ SOURCES
+ dragwidget.cpp dragwidget.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(draggableicons "draggableicons" FILES
+ images/boat.png
+ images/car.png
+ images/house.png)
+
diff --git a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
new file mode 100644
index 0000000000..96ec5feff6
--- /dev/null
+++ b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from draggabletext.pro.
+
+#####################################################################
+## draggabletext Binary:
+#####################################################################
+
+add_qt_executable(draggabletext
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/draggabletext"
+ SOURCES
+ dragwidget.cpp dragwidget.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(draggabletext "draggabletext" PREFIX "/dictionary" FILES
+ words.txt)
+
diff --git a/examples/widgets/draganddrop/dropsite/CMakeLists.txt b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
new file mode 100644
index 0000000000..0d54133750
--- /dev/null
+++ b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from dropsite.pro.
+
+#####################################################################
+## dropsite Binary:
+#####################################################################
+
+add_qt_executable(dropsite
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/dropsite"
+ SOURCES
+ droparea.cpp droparea.h
+ dropsitewindow.cpp dropsitewindow.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
new file mode 100644
index 0000000000..fcd7f3da15
--- /dev/null
+++ b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from fridgemagnets.pro.
+
+#####################################################################
+## fridgemagnets Binary:
+#####################################################################
+
+add_qt_executable(fridgemagnets
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/fridgemagnets"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/fridgemagnets"
+ SOURCES
+ draglabel.cpp draglabel.h
+ dragwidget.cpp dragwidget.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(fridgemagnets "fridgemagnets" PREFIX "/dictionary" FILES
+ words.txt)
+
diff --git a/examples/widgets/draganddrop/puzzle/CMakeLists.txt b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
new file mode 100644
index 0000000000..2622dd068e
--- /dev/null
+++ b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from puzzle.pro.
+
+#####################################################################
+## puzzle Binary:
+#####################################################################
+
+add_qt_executable(puzzle
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/puzzle"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/draganddrop/puzzle"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ pieceslist.cpp pieceslist.h
+ puzzlewidget.cpp puzzlewidget.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(puzzle "puzzle" PREFIX "/images" FILES
+ example.jpg)
+
+
+#### Keys ignored in scope 1:.:puzzle.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "dndpuzzle"
diff --git a/examples/widgets/effects/CMakeLists.txt b/examples/widgets/effects/CMakeLists.txt
new file mode 100644
index 0000000000..6e8a892de1
--- /dev/null
+++ b/examples/widgets/effects/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from effects.pro.
+
+add_subdirectory(blurpicker)
+add_subdirectory(fademessage)
diff --git a/examples/widgets/effects/blurpicker/CMakeLists.txt b/examples/widgets/effects/blurpicker/CMakeLists.txt
new file mode 100644
index 0000000000..f534c47102
--- /dev/null
+++ b/examples/widgets/effects/blurpicker/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from blurpicker.pro.
+
+#####################################################################
+## blurpicker Binary:
+#####################################################################
+
+add_qt_executable(blurpicker
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/blurpicker"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/blurpicker"
+ SOURCES
+ blureffect.cpp blureffect.h
+ blurpicker.cpp blurpicker.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(blurpicker "blurpicker" PREFIX "/" FILES
+ images/accessories-calculator.png
+ images/accessories-text-editor.png
+ images/background.jpg
+ images/help-browser.png
+ images/internet-group-chat.png
+ images/internet-mail.png
+ images/internet-web-browser.png
+ images/office-calendar.png
+ images/system-users.png)
+
diff --git a/examples/widgets/effects/fademessage/CMakeLists.txt b/examples/widgets/effects/fademessage/CMakeLists.txt
new file mode 100644
index 0000000000..838a10022e
--- /dev/null
+++ b/examples/widgets/effects/fademessage/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from fademessage.pro.
+
+#####################################################################
+## fademessage Binary:
+#####################################################################
+
+add_qt_executable(fademessage
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/fademessage"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/effects/fademessage"
+ SOURCES
+ fademessage.cpp fademessage.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(fademessage "fademessage" PREFIX "/" FILES
+ background.jpg)
+
diff --git a/examples/widgets/gestures/CMakeLists.txt b/examples/widgets/gestures/CMakeLists.txt
new file mode 100644
index 0000000000..0f9f95b72f
--- /dev/null
+++ b/examples/widgets/gestures/CMakeLists.txt
@@ -0,0 +1,3 @@
+# Generated from gestures.pro.
+
+add_subdirectory(imagegestures)
diff --git a/examples/widgets/gestures/imagegestures/CMakeLists.txt b/examples/widgets/gestures/imagegestures/CMakeLists.txt
new file mode 100644
index 0000000000..4862654314
--- /dev/null
+++ b/examples/widgets/gestures/imagegestures/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from imagegestures.pro.
+
+#####################################################################
+## imagegestures Binary:
+#####################################################################
+
+add_qt_executable(imagegestures
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/gestures/imagegestures"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/gestures/imagegestures"
+ SOURCES
+ imagewidget.cpp imagewidget.h
+ main.cpp
+ mainwidget.cpp mainwidget.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/graphicsview/CMakeLists.txt b/examples/widgets/graphicsview/CMakeLists.txt
new file mode 100644
index 0000000000..19f60011e5
--- /dev/null
+++ b/examples/widgets/graphicsview/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from graphicsview.pro.
+
+add_subdirectory(chip)
+add_subdirectory(elasticnodes)
+add_subdirectory(embeddeddialogs)
+add_subdirectory(collidingmice)
+add_subdirectory(padnavigator)
+add_subdirectory(basicgraphicslayouts)
+add_subdirectory(diagramscene)
+if(QT_FEATURE_cursor AND QT_FEATURE_draganddrop)
+ add_subdirectory(dragdroprobot)
+endif()
+add_subdirectory(flowlayout)
+add_subdirectory(anchorlayout)
+add_subdirectory(simpleanchorlayout)
+add_subdirectory(weatheranchorlayout)
+
+if(TARGET Qt::OpenGL AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_dynamicgl)
+ add_subdirectory(boxes)
+endif()
diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
new file mode 100644
index 0000000000..8149f96784
--- /dev/null
+++ b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from anchorlayout.pro.
+
+#####################################################################
+## anchorlayout Binary:
+#####################################################################
+
+add_qt_executable(anchorlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/anchorlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/anchorlayout"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
new file mode 100644
index 0000000000..d285a35ecc
--- /dev/null
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from basicgraphicslayouts.pro.
+
+#####################################################################
+## basicgraphicslayouts Binary:
+#####################################################################
+
+add_qt_executable(basicgraphicslayouts
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/basicgraphicslayouts"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/basicgraphicslayouts"
+ SOURCES
+ layoutitem.cpp layoutitem.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(basicgraphicslayouts "basicgraphicslayouts" FILES
+ images/block.png)
+
diff --git a/examples/widgets/graphicsview/boxes/CMakeLists.txt b/examples/widgets/graphicsview/boxes/CMakeLists.txt
new file mode 100644
index 0000000000..af2891ffb1
--- /dev/null
+++ b/examples/widgets/graphicsview/boxes/CMakeLists.txt
@@ -0,0 +1,54 @@
+# Generated from boxes.pro.
+
+qt_find_package(WrapOpenGL PROVIDED_TARGETS WrapOpenGL) # special case
+#####################################################################
+## boxes Binary:
+#####################################################################
+
+add_qt_executable(boxes
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/boxes"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/boxes"
+ SOURCES
+ 3rdparty/fbm.c 3rdparty/fbm.h
+ glbuffers.cpp glbuffers.h
+ glextensions.cpp glextensions.h
+ gltrianglemesh.h
+ main.cpp
+ qtbox.cpp qtbox.h
+ roundedbox.cpp roundedbox.h
+ scene.cpp scene.h
+ trackball.cpp trackball.h
+ LIBRARIES
+ Qt::OpenGL
+ Qt::Widgets
+ WrapOpenGL
+)
+
+# Resources:
+add_qt_resource(boxes "boxes" PREFIX "/res/boxes" FILES
+ basic.fsh
+ basic.vsh
+ cubemap_negx.jpg
+ cubemap_negy.jpg
+ cubemap_negz.jpg
+ cubemap_posx.jpg
+ cubemap_posy.jpg
+ cubemap_posz.jpg
+ dotted.fsh
+ fresnel.fsh
+ glass.fsh
+ granite.fsh
+ marble.fsh
+ parameters.par
+ qt-logo.jpg
+ qt-logo.png
+ reflection.fsh
+ refraction.fsh
+ smiley.png
+ square.jpg
+ wood.fsh)
+
+
+## Scopes:
+#####################################################################
diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt
new file mode 100644
index 0000000000..566a8aae02
--- /dev/null
+++ b/examples/widgets/graphicsview/chip/CMakeLists.txt
@@ -0,0 +1,44 @@
+# Generated from chip.pro.
+
+#####################################################################
+## chip Binary:
+#####################################################################
+
+add_qt_executable(chip
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip"
+ SOURCES
+ chip.cpp chip.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ view.cpp view.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(chip "images" FILES
+ fileprint.png
+ qt4logo.png
+ rotateleft.png
+ rotateright.png
+ zoomin.png
+ zoomout.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(chip CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
+
+extend_target(chip CONDITION TARGET Qt::OpenGL
+ LIBRARIES
+ Qt::OpenGL
+)
+
+#### Keys ignored in scope 4:.:chip.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
new file mode 100644
index 0000000000..5455bec89e
--- /dev/null
+++ b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from collidingmice.pro.
+
+#####################################################################
+## collidingmice Binary:
+#####################################################################
+
+add_qt_executable(collidingmice
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/collidingmice"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/collidingmice"
+ SOURCES
+ main.cpp
+ mouse.cpp mouse.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(collidingmice "mice" PREFIX "/" FILES
+ images/cheese.jpg)
+
diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
new file mode 100644
index 0000000000..fb3ff6c712
--- /dev/null
+++ b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
@@ -0,0 +1,39 @@
+# Generated from diagramscene.pro.
+
+#####################################################################
+## diagramscene Binary:
+#####################################################################
+
+add_qt_executable(diagramscene
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/diagramscene"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/diagramscene"
+ SOURCES
+ arrow.cpp arrow.h
+ diagramitem.cpp diagramitem.h
+ diagramscene.cpp diagramscene.h
+ diagramtextitem.cpp diagramtextitem.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(diagramscene "diagramscene" FILES
+ images/background1.png
+ images/background2.png
+ images/background3.png
+ images/background4.png
+ images/bold.png
+ images/bringtofront.png
+ images/delete.png
+ images/floodfill.png
+ images/italic.png
+ images/linecolor.png
+ images/linepointer.png
+ images/pointer.png
+ images/sendtoback.png
+ images/textpointer.png
+ images/underline.png)
+
diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
new file mode 100644
index 0000000000..76932368e8
--- /dev/null
+++ b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from dragdroprobot.pro.
+
+#####################################################################
+## dragdroprobot Binary:
+#####################################################################
+
+add_qt_executable(dragdroprobot
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/dragdroprobot"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/dragdroprobot"
+ SOURCES
+ coloritem.cpp coloritem.h
+ main.cpp
+ robot.cpp robot.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(dragdroprobot "robot" PREFIX "/" FILES
+ images/head.png)
+
diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
new file mode 100644
index 0000000000..d1c10327b0
--- /dev/null
+++ b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from elasticnodes.pro.
+
+#####################################################################
+## elasticnodes Binary:
+#####################################################################
+
+add_qt_executable(elasticnodes
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/elasticnodes"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/elasticnodes"
+ SOURCES
+ edge.cpp edge.h
+ graphwidget.cpp graphwidget.h
+ main.cpp
+ node.cpp node.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
new file mode 100644
index 0000000000..dda61e0f68
--- /dev/null
+++ b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from embeddeddialogs.pro.
+
+#####################################################################
+## embeddeddialogs Binary:
+#####################################################################
+
+add_qt_executable(embeddeddialogs
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/embeddeddialogs"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/embeddeddialogs"
+ SOURCES
+ customproxy.cpp customproxy.h
+ embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(embeddeddialogs "embeddeddialogs" FILES
+ No-Ones-Laughing-3.jpg)
+
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:embeddeddialogs.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
new file mode 100644
index 0000000000..2d313ff700
--- /dev/null
+++ b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from flowlayout.pro.
+
+#####################################################################
+## flowlayout Binary:
+#####################################################################
+
+add_qt_executable(flowlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/flowlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/flowlayout"
+ SOURCES
+ flowlayout.cpp flowlayout.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:flowlayout.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "flowlayout_graphicsview"
diff --git a/examples/widgets/graphicsview/padnavigator/CMakeLists.txt b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt
new file mode 100644
index 0000000000..9c4282391e
--- /dev/null
+++ b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Generated from padnavigator.pro.
+
+#####################################################################
+## padnavigator Binary:
+#####################################################################
+
+add_qt_executable(padnavigator
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/padnavigator"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/padnavigator"
+ SOURCES
+ flippablepad.cpp flippablepad.h
+ form.ui
+ main.cpp
+ padnavigator.cpp padnavigator.h
+ roundrectitem.cpp roundrectitem.h
+ splashitem.cpp splashitem.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(padnavigator "padnavigator" FILES
+ images/artsfftscope.png
+ images/blue_angle_swirl.jpg
+ images/kontact_contacts.png
+ images/kontact_journal.png
+ images/kontact_mail.png
+ images/kontact_notes.png
+ images/kopeteavailable.png
+ images/metacontact_online.png
+ images/minitools.png)
+
+
+#### Keys ignored in scope 1:.:.:padnavigator.pro:<TRUE>:
+# CONFIG = "console"
+
+## Scopes:
+#####################################################################
+
+extend_target(padnavigator CONDITION TARGET Qt::OpenGL
+ PUBLIC_LIBRARIES
+ Qt::OpenGL
+)
diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
new file mode 100644
index 0000000000..87e4742b44
--- /dev/null
+++ b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from simpleanchorlayout.pro.
+
+#####################################################################
+## simpleanchorlayout Binary:
+#####################################################################
+
+add_qt_executable(simpleanchorlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/simpleanchorlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/simpleanchorlayout"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
new file mode 100644
index 0000000000..5a20bbdb2e
--- /dev/null
+++ b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from weatheranchorlayout.pro.
+
+#####################################################################
+## weatheranchorlayout Binary:
+#####################################################################
+
+add_qt_executable(weatheranchorlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(weatheranchorlayout "weatheranchorlayout" FILES
+ images/5days.jpg
+ images/details.jpg
+ images/place.jpg
+ images/tabbar.jpg
+ images/title.jpg
+ images/weather-few-clouds.png)
+
diff --git a/examples/widgets/itemviews/CMakeLists.txt b/examples/widgets/itemviews/CMakeLists.txt
new file mode 100644
index 0000000000..a1bd0c4dca
--- /dev/null
+++ b/examples/widgets/itemviews/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from itemviews.pro.
+
+add_subdirectory(addressbook)
+add_subdirectory(basicsortfiltermodel)
+add_subdirectory(chart)
+add_subdirectory(coloreditorfactory)
+add_subdirectory(combowidgetmapper)
+add_subdirectory(customsortfiltermodel)
+add_subdirectory(dirview)
+add_subdirectory(editabletreemodel)
+add_subdirectory(fetchmore)
+add_subdirectory(flattreeview)
+add_subdirectory(frozencolumn)
+add_subdirectory(interview)
+add_subdirectory(pixelator)
+if(QT_FEATURE_draganddrop) # special case
+ add_subdirectory(puzzle)
+endif()
+if(TARGET Qt::Xml) # special case
+ add_subdirectory(simpledommodel)
+endif()
+add_subdirectory(simpletreemodel)
+add_subdirectory(simplewidgetmapper)
+add_subdirectory(spinboxdelegate)
+add_subdirectory(spreadsheet)
+add_subdirectory(stardelegate)
+add_subdirectory(storageview)
diff --git a/examples/widgets/itemviews/addressbook/CMakeLists.txt b/examples/widgets/itemviews/addressbook/CMakeLists.txt
new file mode 100644
index 0000000000..cee0ef70e2
--- /dev/null
+++ b/examples/widgets/itemviews/addressbook/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from addressbook.pro.
+
+#####################################################################
+## addressbook Binary:
+#####################################################################
+
+add_qt_executable(addressbook
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/addressbook"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/addressbook"
+ SOURCES
+ adddialog.cpp adddialog.h
+ addresswidget.cpp addresswidget.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ newaddresstab.cpp newaddresstab.h
+ tablemodel.cpp tablemodel.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
new file mode 100644
index 0000000000..6da9a73867
--- /dev/null
+++ b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from basicsortfiltermodel.pro.
+
+#####################################################################
+## basicsortfiltermodel Binary:
+#####################################################################
+
+add_qt_executable(basicsortfiltermodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/basicsortfiltermodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/basicsortfiltermodel"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/chart/CMakeLists.txt b/examples/widgets/itemviews/chart/CMakeLists.txt
new file mode 100644
index 0000000000..9d707d1ec6
--- /dev/null
+++ b/examples/widgets/itemviews/chart/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from chart.pro.
+
+#####################################################################
+## chart Binary:
+#####################################################################
+
+add_qt_executable(chart
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/chart"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/chart"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ pieview.cpp pieview.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(chart "chart" PREFIX "/Charts" FILES
+ qtdata.cht)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(chart CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
+ LIBRARIES
+ m
+)
diff --git a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
new file mode 100644
index 0000000000..317489e6e2
--- /dev/null
+++ b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from coloreditorfactory.pro.
+
+#####################################################################
+## coloreditorfactory Binary:
+#####################################################################
+
+add_qt_executable(coloreditorfactory
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/coloreditorfactory"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/coloreditorfactory"
+ SOURCES
+ colorlisteditor.cpp colorlisteditor.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
new file mode 100644
index 0000000000..326df33ba2
--- /dev/null
+++ b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from combowidgetmapper.pro.
+
+#####################################################################
+## combowidgetmapper Binary:
+#####################################################################
+
+add_qt_executable(combowidgetmapper
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/combowidgetmapper"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/combowidgetmapper"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
new file mode 100644
index 0000000000..6cbfa84ae1
--- /dev/null
+++ b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from customsortfiltermodel.pro.
+
+#####################################################################
+## customsortfiltermodel Binary:
+#####################################################################
+
+add_qt_executable(customsortfiltermodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/customsortfiltermodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/customsortfiltermodel"
+ SOURCES
+ filterwidget.cpp filterwidget.h
+ main.cpp
+ mysortfilterproxymodel.cpp mysortfilterproxymodel.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(customsortfiltermodel "customsortfiltermodel" PREFIX "/" FILES
+ images/find.png)
+
diff --git a/examples/widgets/itemviews/dirview/CMakeLists.txt b/examples/widgets/itemviews/dirview/CMakeLists.txt
new file mode 100644
index 0000000000..5ad3455249
--- /dev/null
+++ b/examples/widgets/itemviews/dirview/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from dirview.pro.
+
+#####################################################################
+## dirview Binary:
+#####################################################################
+
+add_qt_executable(dirview
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/dirview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/dirview"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
new file mode 100644
index 0000000000..9cb49e0a25
--- /dev/null
+++ b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from editabletreemodel.pro.
+
+#####################################################################
+## editabletreemodel Binary:
+#####################################################################
+
+add_qt_executable(editabletreemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/editabletreemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/editabletreemodel"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ treeitem.cpp treeitem.h
+ treemodel.cpp treemodel.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(editabletreemodel "editabletreemodel" PREFIX "/" FILES
+ default.txt)
+
diff --git a/examples/widgets/itemviews/fetchmore/CMakeLists.txt b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
new file mode 100644
index 0000000000..d3f2578302
--- /dev/null
+++ b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from fetchmore.pro.
+
+#####################################################################
+## fetchmore Binary:
+#####################################################################
+
+add_qt_executable(fetchmore
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/fetchmore"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/fetchmore"
+ SOURCES
+ filelistmodel.cpp filelistmodel.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/flattreeview/CMakeLists.txt b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
new file mode 100644
index 0000000000..c8bffce970
--- /dev/null
+++ b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from flattreeview.pro.
+
+#####################################################################
+## flattreeview Binary:
+#####################################################################
+
+add_qt_executable(flattreeview
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/flattreeview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/flattreeview"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
new file mode 100644
index 0000000000..11e8a1e471
--- /dev/null
+++ b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from frozencolumn.pro.
+
+#####################################################################
+## frozencolumn Binary:
+#####################################################################
+
+add_qt_executable(frozencolumn
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/frozencolumn"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/frozencolumn"
+ SOURCES
+ freezetablewidget.cpp freezetablewidget.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(frozencolumn "grades" PREFIX "/" FILES
+ grades.txt)
+
diff --git a/examples/widgets/itemviews/interview/CMakeLists.txt b/examples/widgets/itemviews/interview/CMakeLists.txt
new file mode 100644
index 0000000000..d970348bc6
--- /dev/null
+++ b/examples/widgets/itemviews/interview/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from interview.pro.
+
+#####################################################################
+## interview Binary:
+#####################################################################
+
+add_qt_executable(interview
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/interview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/interview"
+ SOURCES
+ main.cpp
+ model.cpp model.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(interview "interview" PREFIX "/" FILES
+ images/folder.png
+ images/interview.png
+ images/services.png)
+
+
+#### Keys ignored in scope 1:.:interview.pro:<NONE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:interview.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/itemviews/pixelator/CMakeLists.txt b/examples/widgets/itemviews/pixelator/CMakeLists.txt
new file mode 100644
index 0000000000..fc29cde3b1
--- /dev/null
+++ b/examples/widgets/itemviews/pixelator/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from pixelator.pro.
+
+#####################################################################
+## pixelator Binary:
+#####################################################################
+
+add_qt_executable(pixelator
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/pixelator"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/pixelator"
+ SOURCES
+ imagemodel.cpp imagemodel.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ pixeldelegate.cpp pixeldelegate.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(pixelator "images" FILES
+ images/qt.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(pixelator CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/itemviews/puzzle/CMakeLists.txt b/examples/widgets/itemviews/puzzle/CMakeLists.txt
new file mode 100644
index 0000000000..a105278418
--- /dev/null
+++ b/examples/widgets/itemviews/puzzle/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from puzzle.pro.
+
+#####################################################################
+## puzzle Binary:
+#####################################################################
+
+add_qt_executable(puzzle_itemview # special case
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/puzzle"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/puzzle"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ piecesmodel.cpp piecesmodel.h
+ puzzlewidget.cpp puzzlewidget.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(puzzle_itemview "puzzle" PREFIX "/images" FILES # special case
+ example.jpg)
+
diff --git a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
new file mode 100644
index 0000000000..2514287049
--- /dev/null
+++ b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from simpledommodel.pro.
+
+#####################################################################
+## simpledommodel Binary:
+#####################################################################
+
+add_qt_executable(simpledommodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpledommodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpledommodel"
+ SOURCES
+ domitem.cpp domitem.h
+ dommodel.cpp dommodel.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Xml
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
new file mode 100644
index 0000000000..1b50a3508c
--- /dev/null
+++ b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from simpletreemodel.pro.
+
+#####################################################################
+## simpletreemodel Binary:
+#####################################################################
+
+add_qt_executable(simpletreemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpletreemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simpletreemodel"
+ SOURCES
+ main.cpp
+ treeitem.cpp treeitem.h
+ treemodel.cpp treemodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(simpletreemodel "simpletreemodel" FILES
+ default.txt)
+
diff --git a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
new file mode 100644
index 0000000000..849f7e2969
--- /dev/null
+++ b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from simplewidgetmapper.pro.
+
+#####################################################################
+## simplewidgetmapper Binary:
+#####################################################################
+
+add_qt_executable(simplewidgetmapper
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simplewidgetmapper"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/simplewidgetmapper"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
new file mode 100644
index 0000000000..b8c24f591c
--- /dev/null
+++ b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from spinboxdelegate.pro.
+
+#####################################################################
+## spinboxdelegate Binary:
+#####################################################################
+
+add_qt_executable(spinboxdelegate
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spinboxdelegate"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spinboxdelegate"
+ SOURCES
+ delegate.cpp delegate.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
new file mode 100644
index 0000000000..498164c1cd
--- /dev/null
+++ b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from spreadsheet.pro.
+
+#####################################################################
+## spreadsheet Binary:
+#####################################################################
+
+add_qt_executable(spreadsheet
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spreadsheet"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/spreadsheet"
+ SOURCES
+ main.cpp
+ printview.cpp printview.h
+ spreadsheet.cpp spreadsheet.h
+ spreadsheetdelegate.cpp spreadsheetdelegate.h
+ spreadsheetitem.cpp spreadsheetitem.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(spreadsheet "spreadsheet" PREFIX "/" FILES
+ images/interview.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(spreadsheet CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
+
+#### Keys ignored in scope 3:.:spreadsheet.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/itemviews/stardelegate/CMakeLists.txt b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
new file mode 100644
index 0000000000..0b94a12fb6
--- /dev/null
+++ b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from stardelegate.pro.
+
+#####################################################################
+## stardelegate Binary:
+#####################################################################
+
+add_qt_executable(stardelegate
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/stardelegate"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/stardelegate"
+ SOURCES
+ main.cpp
+ stardelegate.cpp stardelegate.h
+ stareditor.cpp stareditor.h
+ starrating.cpp starrating.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/itemviews/storageview/CMakeLists.txt b/examples/widgets/itemviews/storageview/CMakeLists.txt
new file mode 100644
index 0000000000..efad83e1a1
--- /dev/null
+++ b/examples/widgets/itemviews/storageview/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from storageview.pro.
+
+#####################################################################
+## storageview Binary:
+#####################################################################
+
+add_qt_executable(storageview
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/storageview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/itemviews/storageview"
+ SOURCES
+ main.cpp
+ storagemodel.cpp storagemodel.h
+ LIBRARIES
+ Qt::Gui
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:storageview.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/layouts/CMakeLists.txt b/examples/widgets/layouts/CMakeLists.txt
new file mode 100644
index 0000000000..eaca669248
--- /dev/null
+++ b/examples/widgets/layouts/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from layouts.pro.
+
+add_subdirectory(basiclayouts)
+add_subdirectory(borderlayout)
+add_subdirectory(dynamiclayouts)
+add_subdirectory(flowlayout)
diff --git a/examples/widgets/layouts/basiclayouts/CMakeLists.txt b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
new file mode 100644
index 0000000000..28ac6a48b2
--- /dev/null
+++ b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from basiclayouts.pro.
+
+#####################################################################
+## basiclayouts Binary:
+#####################################################################
+
+add_qt_executable(basiclayouts
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/basiclayouts"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/basiclayouts"
+ SOURCES
+ dialog.cpp dialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/layouts/borderlayout/CMakeLists.txt b/examples/widgets/layouts/borderlayout/CMakeLists.txt
new file mode 100644
index 0000000000..72cf6002a2
--- /dev/null
+++ b/examples/widgets/layouts/borderlayout/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from borderlayout.pro.
+
+#####################################################################
+## borderlayout Binary:
+#####################################################################
+
+add_qt_executable(borderlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/borderlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/borderlayout"
+ SOURCES
+ borderlayout.cpp borderlayout.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
new file mode 100644
index 0000000000..47f935bf68
--- /dev/null
+++ b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from dynamiclayouts.pro.
+
+#####################################################################
+## dynamiclayouts Binary:
+#####################################################################
+
+add_qt_executable(dynamiclayouts
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/dynamiclayouts"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/dynamiclayouts"
+ SOURCES
+ dialog.cpp dialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/layouts/flowlayout/CMakeLists.txt b/examples/widgets/layouts/flowlayout/CMakeLists.txt
new file mode 100644
index 0000000000..a887abb93e
--- /dev/null
+++ b/examples/widgets/layouts/flowlayout/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from flowlayout.pro.
+
+#####################################################################
+## flowlayout Binary:
+#####################################################################
+
+add_qt_executable(flowlayout_layout # special case
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/flowlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/layouts/flowlayout"
+ SOURCES
+ flowlayout.cpp flowlayout.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/mac/CMakeLists.txt b/examples/widgets/mac/CMakeLists.txt
new file mode 100644
index 0000000000..82038acfae
--- /dev/null
+++ b/examples/widgets/mac/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from mac.pro.
+
+
+if(APPLE_OSX)
+ add_subdirectory(qmaccocoaviewcontainer)
+ add_subdirectory(qmacnativewidget)
+endif()
diff --git a/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt b/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt
new file mode 100644
index 0000000000..52d1db1d9e
--- /dev/null
+++ b/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from qmaccocoaviewcontainer.pro.
+
+#####################################################################
+## qmaccocoaviewcontainer Binary:
+#####################################################################
+
+add_qt_executable(qmaccocoaviewcontainer
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmaccocoaviewcontainer"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmaccocoaviewcontainer"
+ SOURCES
+ main.mm
+ LIBRARIES
+ Qt::Widgets
+ ${FWAppKit}
+)
+
+#### Keys ignored in scope 1:.:qmaccocoaviewcontainer.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/mac/qmacnativewidget/CMakeLists.txt b/examples/widgets/mac/qmacnativewidget/CMakeLists.txt
new file mode 100644
index 0000000000..9708fae762
--- /dev/null
+++ b/examples/widgets/mac/qmacnativewidget/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from qmacnativewidget.pro.
+
+#####################################################################
+## qmacnativewidget Binary:
+#####################################################################
+
+add_qt_executable(qmacnativewidget
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmacnativewidget"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mac/qmacnativewidget"
+ SOURCES
+ main.mm
+ LIBRARIES
+ Qt::Widgets
+ ${FWAppKit}
+)
+
+#### Keys ignored in scope 1:.:qmacnativewidget.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/mainwindows/CMakeLists.txt b/examples/widgets/mainwindows/CMakeLists.txt
new file mode 100644
index 0000000000..8bb5f52f92
--- /dev/null
+++ b/examples/widgets/mainwindows/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from mainwindows.pro.
+
+add_subdirectory(application)
+add_subdirectory(dockwidgets)
+add_subdirectory(mainwindow)
+add_subdirectory(mdi)
+add_subdirectory(menus)
+add_subdirectory(sdi)
diff --git a/examples/widgets/mainwindows/application/CMakeLists.txt b/examples/widgets/mainwindows/application/CMakeLists.txt
new file mode 100644
index 0000000000..8a9bdea2c2
--- /dev/null
+++ b/examples/widgets/mainwindows/application/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from application.pro.
+
+#####################################################################
+## application Binary:
+#####################################################################
+
+add_qt_executable(application
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/application"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/application"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(application "application" FILES
+ images/copy.png
+ images/cut.png
+ images/new.png
+ images/open.png
+ images/paste.png
+ images/save.png)
+
diff --git a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
new file mode 100644
index 0000000000..e8fd580fd8
--- /dev/null
+++ b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from dockwidgets.pro.
+
+#####################################################################
+## dockwidgets Binary:
+#####################################################################
+
+add_qt_executable(dockwidgets
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/dockwidgets"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/dockwidgets"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(dockwidgets "dockwidgets" FILES
+ images/new.png
+ images/print.png
+ images/save.png
+ images/undo.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(dockwidgets CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
new file mode 100644
index 0000000000..df1d9b6355
--- /dev/null
+++ b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from mainwindow.pro.
+
+#####################################################################
+## mainwindow Binary:
+#####################################################################
+
+add_qt_executable(mainwindow
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mainwindow"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mainwindow"
+ SOURCES
+ colorswatch.cpp colorswatch.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ toolbar.cpp toolbar.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(mainwindow "mainwindow" PREFIX "/res" FILES
+ qt.png
+ titlebarCenter.png
+ titlebarLeft.png
+ titlebarRight.png)
+
+
+#### Keys ignored in scope 1:.:mainwindow.pro:<NONE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:mainwindow.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/mainwindows/mdi/CMakeLists.txt b/examples/widgets/mainwindows/mdi/CMakeLists.txt
new file mode 100644
index 0000000000..c20acbdfca
--- /dev/null
+++ b/examples/widgets/mainwindows/mdi/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from mdi.pro.
+
+#####################################################################
+## mdi Binary:
+#####################################################################
+
+add_qt_executable(mdi
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mdi"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/mdi"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ mdichild.cpp mdichild.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(mdi "mdi" FILES
+ images/copy.png
+ images/cut.png
+ images/new.png
+ images/open.png
+ images/paste.png
+ images/save.png)
+
diff --git a/examples/widgets/mainwindows/menus/CMakeLists.txt b/examples/widgets/mainwindows/menus/CMakeLists.txt
new file mode 100644
index 0000000000..6d7e471a8c
--- /dev/null
+++ b/examples/widgets/mainwindows/menus/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from menus.pro.
+
+#####################################################################
+## menus Binary:
+#####################################################################
+
+add_qt_executable(menus
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/menus"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/menus"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/mainwindows/sdi/CMakeLists.txt b/examples/widgets/mainwindows/sdi/CMakeLists.txt
new file mode 100644
index 0000000000..8391aa0cbc
--- /dev/null
+++ b/examples/widgets/mainwindows/sdi/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from sdi.pro.
+
+#####################################################################
+## sdi Binary:
+#####################################################################
+
+add_qt_executable(sdi
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/sdi"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/mainwindows/sdi"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(sdi "sdi" FILES
+ images/copy.png
+ images/cut.png
+ images/new.png
+ images/open.png
+ images/paste.png
+ images/save.png)
+
diff --git a/examples/widgets/painting/CMakeLists.txt b/examples/widgets/painting/CMakeLists.txt
new file mode 100644
index 0000000000..e7d612da3b
--- /dev/null
+++ b/examples/widgets/painting/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from painting.pro.
+
+add_subdirectory(shared) # special case
+add_subdirectory(basicdrawing)
+add_subdirectory(concentriccircles)
+add_subdirectory(affine)
+# add_subdirectory(composition) # FIXME: Seems buggy wrt. usesOpenGL function
+add_subdirectory(deform)
+add_subdirectory(gradients)
+add_subdirectory(pathstroke)
+add_subdirectory(imagecomposition)
+add_subdirectory(painterpaths)
+add_subdirectory(transformations)
+add_subdirectory(fontsampler)
diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt
new file mode 100644
index 0000000000..cda43296dd
--- /dev/null
+++ b/examples/widgets/painting/affine/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from affine.pro.
+
+#####################################################################
+## affine Binary:
+#####################################################################
+
+add_qt_executable(affine
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine"
+ SOURCES
+ main.cpp
+ xform.cpp xform.h
+ # INCLUDE_DIRECTORIES ../shared # special case
+ LIBRARIES # special case
+ painting_shared
+)
+
+# Resources:
+add_qt_resource(affine "affine" PREFIX "/res/affine" FILES
+ bg1.jpg
+ xform.cpp
+ xform.html)
diff --git a/examples/widgets/painting/basicdrawing/CMakeLists.txt b/examples/widgets/painting/basicdrawing/CMakeLists.txt
new file mode 100644
index 0000000000..176149dad5
--- /dev/null
+++ b/examples/widgets/painting/basicdrawing/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from basicdrawing.pro.
+
+#####################################################################
+## basicdrawing Binary:
+#####################################################################
+
+add_qt_executable(basicdrawing
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing"
+ SOURCES
+ main.cpp
+ renderarea.cpp renderarea.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(basicdrawing "basicdrawing" FILES
+ images/brick.png
+ images/qt-logo.png)
+
diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt
new file mode 100644
index 0000000000..1e83bc4814
--- /dev/null
+++ b/examples/widgets/painting/composition/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from composition.pro.
+
+#####################################################################
+## composition Binary:
+#####################################################################
+
+add_qt_executable(composition
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition"
+ SOURCES
+ composition.cpp composition.h
+ main.cpp
+ LIBRARIES # special case
+ painting_shared
+)
+
+# Resources:
+add_qt_resource(composition "composition" PREFIX "/res/composition" FILES
+ composition.cpp
+ composition.html
+ flower.jpg
+ flower_alpha.jpg)
diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt
new file mode 100644
index 0000000000..a2305782a5
--- /dev/null
+++ b/examples/widgets/painting/concentriccircles/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from concentriccircles.pro.
+
+#####################################################################
+## concentriccircles Binary:
+#####################################################################
+
+add_qt_executable(concentriccircles
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles"
+ SOURCES
+ circlewidget.cpp circlewidget.h
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt
new file mode 100644
index 0000000000..67622da25d
--- /dev/null
+++ b/examples/widgets/painting/deform/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from deform.pro.
+
+#####################################################################
+## deform Binary:
+#####################################################################
+
+add_qt_executable(deform
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform"
+ SOURCES
+ main.cpp
+ pathdeform.cpp pathdeform.h
+ LIBRARIES # special case
+ painting_shared
+)
+
+# Resources:
+add_qt_resource(deform "deform" PREFIX "/res/deform" FILES
+ pathdeform.cpp
+ pathdeform.html)
diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt
new file mode 100644
index 0000000000..38bb59eb6c
--- /dev/null
+++ b/examples/widgets/painting/fontsampler/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from fontsampler.pro.
+
+#####################################################################
+## fontsampler Binary:
+#####################################################################
+
+add_qt_executable(fontsampler
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ mainwindowbase.ui
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(fontsampler CONDITION TARGET Qt::PrintSupport
+ PUBLIC_LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/painting/gradients/CMakeLists.txt b/examples/widgets/painting/gradients/CMakeLists.txt
new file mode 100644
index 0000000000..0d5553b986
--- /dev/null
+++ b/examples/widgets/painting/gradients/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from gradients.pro.
+
+#####################################################################
+## gradients Binary:
+#####################################################################
+
+add_qt_executable(gradients
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients"
+ SOURCES
+ gradients.cpp gradients.h
+ main.cpp
+ LIBRARIES # special case
+ painting_shared
+)
+
+# Resources:
+add_qt_resource(gradients "gradients" PREFIX "/res/gradients" FILES
+ gradients.cpp
+ gradients.html)
diff --git a/examples/widgets/painting/imagecomposition/CMakeLists.txt b/examples/widgets/painting/imagecomposition/CMakeLists.txt
new file mode 100644
index 0000000000..eed2bede43
--- /dev/null
+++ b/examples/widgets/painting/imagecomposition/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from imagecomposition.pro.
+
+#####################################################################
+## imagecomposition Binary:
+#####################################################################
+
+add_qt_executable(imagecomposition
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition"
+ SOURCES
+ imagecomposer.cpp imagecomposer.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(imagecomposition "imagecomposition" FILES
+ images/butterfly.png
+ images/checker.png)
+
diff --git a/examples/widgets/painting/painterpaths/CMakeLists.txt b/examples/widgets/painting/painterpaths/CMakeLists.txt
new file mode 100644
index 0000000000..13dd321a52
--- /dev/null
+++ b/examples/widgets/painting/painterpaths/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from painterpaths.pro.
+
+#####################################################################
+## painterpaths Binary:
+#####################################################################
+
+add_qt_executable(painterpaths
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths"
+ SOURCES
+ main.cpp
+ renderarea.cpp renderarea.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+ painting_shared # special case
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(painterpaths CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS
+ LIBRARIES
+ m
+)
diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt
new file mode 100644
index 0000000000..150a1baa83
--- /dev/null
+++ b/examples/widgets/painting/pathstroke/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from pathstroke.pro.
+
+#####################################################################
+## pathstroke Binary:
+#####################################################################
+
+add_qt_executable(pathstroke
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke"
+ SOURCES
+ main.cpp
+ pathstroke.cpp pathstroke.h
+ LIBRARIES # special case
+ painting_shared
+)
+
+# Resources:
+add_qt_resource(pathstroke "pathstroke" PREFIX "/res/pathstroke" FILES
+ pathstroke.cpp
+ pathstroke.html)
diff --git a/examples/widgets/painting/shared/CMakeLists.txt b/examples/widgets/painting/shared/CMakeLists.txt
new file mode 100644
index 0000000000..a7bec2789b
--- /dev/null
+++ b/examples/widgets/painting/shared/CMakeLists.txt
@@ -0,0 +1,64 @@
+# special case: Entire file!
+
+# special case:
+add_library(painting_shared OBJECT)
+qt_manual_moc(moc_files arthurwidgets.h hoverpoints.h) # no automoc for OBJECT libs:-/
+target_sources(painting_shared PRIVATE
+ arthurstyle.cpp arthurstyle.h
+ arthurwidgets.cpp arthurwidgets.h
+ hoverpoints.cpp hoverpoints.h
+ ${moc_files}
+)
+target_link_libraries(painting_shared PUBLIC Qt::Widgets)
+target_include_directories(painting_shared PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
+
+
+# Resources:
+add_qt_resource(painting_shared "shared" PREFIX "/res" FILES
+ images/button_normal_cap_left.png
+ images/button_normal_cap_right.png
+ images/button_normal_stretch.png
+ images/button_pressed_cap_left.png
+ images/button_pressed_cap_right.png
+ images/button_pressed_stretch.png
+ images/frame_bottom.png
+ images/frame_bottomleft.png
+ images/frame_bottomright.png
+ images/frame_left.png
+ images/frame_right.png
+ images/frame_top.png
+ images/frame_topleft.png
+ images/frame_topright.png
+ images/groupframe_bottom_left.png
+ images/groupframe_bottom_right.png
+ images/groupframe_bottom_stretch.png
+ images/groupframe_left_stretch.png
+ images/groupframe_right_stretch.png
+ images/groupframe_top_stretch.png
+ images/groupframe_topleft.png
+ images/groupframe_topright.png
+ images/line_dash_dot.png
+ images/line_dash_dot_dot.png
+ images/line_dashed.png
+ images/line_dotted.png
+ images/line_solid.png
+ images/radiobutton-on.png
+ images/radiobutton_off.png
+ images/radiobutton_on.png
+ images/slider_bar.png
+ images/slider_thumb_on.png
+ images/title_cap_left.png
+ images/title_cap_right.png
+ images/title_stretch.png)
+
+
+## Scopes:
+#####################################################################
+
+extend_target(painting_shared CONDITION TARGET Qt::OpenGL OR QT_FEATURE_opengles2
+ DEFINES
+ QT_OPENGL_SUPPORT
+ LIBRARIES
+ Qt::OpenGL
+ Qt::Widgets
+)
diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt
new file mode 100644
index 0000000000..a3c3130c32
--- /dev/null
+++ b/examples/widgets/painting/transformations/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from transformations.pro.
+
+#####################################################################
+## transformations Binary:
+#####################################################################
+
+add_qt_executable(transformations
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations"
+ SOURCES
+ main.cpp
+ renderarea.cpp renderarea.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/richtext/CMakeLists.txt b/examples/widgets/richtext/CMakeLists.txt
new file mode 100644
index 0000000000..adb98e38f9
--- /dev/null
+++ b/examples/widgets/richtext/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from richtext.pro.
+
+add_subdirectory(calendar)
+add_subdirectory(orderform)
+add_subdirectory(syntaxhighlighter)
+add_subdirectory(textedit)
diff --git a/examples/widgets/richtext/calendar/CMakeLists.txt b/examples/widgets/richtext/calendar/CMakeLists.txt
new file mode 100644
index 0000000000..8d26479929
--- /dev/null
+++ b/examples/widgets/richtext/calendar/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from calendar.pro.
+
+#####################################################################
+## calendar Binary:
+#####################################################################
+
+add_qt_executable(calendar
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/calendar"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/calendar"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/richtext/orderform/CMakeLists.txt b/examples/widgets/richtext/orderform/CMakeLists.txt
new file mode 100644
index 0000000000..5f12e98cdf
--- /dev/null
+++ b/examples/widgets/richtext/orderform/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from orderform.pro.
+
+#####################################################################
+## orderform Binary:
+#####################################################################
+
+add_qt_executable(orderform
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/orderform"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/orderform"
+ SOURCES
+ detailsdialog.cpp detailsdialog.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(orderform CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
new file mode 100644
index 0000000000..afffcc639b
--- /dev/null
+++ b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from syntaxhighlighter.pro.
+
+#####################################################################
+## syntaxhighlighter Binary:
+#####################################################################
+
+add_qt_executable(syntaxhighlighter
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/syntaxhighlighter"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/syntaxhighlighter"
+ SOURCES
+ highlighter.cpp highlighter.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/richtext/textedit/CMakeLists.txt b/examples/widgets/richtext/textedit/CMakeLists.txt
new file mode 100644
index 0000000000..487f708b34
--- /dev/null
+++ b/examples/widgets/richtext/textedit/CMakeLists.txt
@@ -0,0 +1,83 @@
+# Generated from textedit.pro.
+
+#####################################################################
+## textedit Binary:
+#####################################################################
+
+add_qt_executable(textedit
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/textedit"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/richtext/textedit"
+ SOURCES
+ main.cpp
+ textedit.cpp textedit.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(textedit "textedit" PREFIX "/" FILES
+ example.html
+ images/logo32.png
+ images/mac/checkbox-checked.png
+ images/mac/checkbox.png
+ images/mac/editcopy.png
+ images/mac/editcut.png
+ images/mac/editpaste.png
+ images/mac/editredo.png
+ images/mac/editundo.png
+ images/mac/exportpdf.png
+ images/mac/filenew.png
+ images/mac/fileopen.png
+ images/mac/fileprint.png
+ images/mac/filesave.png
+ images/mac/format-indent-less.png
+ images/mac/format-indent-more.png
+ images/mac/textbold.png
+ images/mac/textcenter.png
+ images/mac/textitalic.png
+ images/mac/textjustify.png
+ images/mac/textleft.png
+ images/mac/textright.png
+ images/mac/textunder.png
+ images/mac/zoomin.png
+ images/mac/zoomout.png
+ images/win/checkbox-checked.png
+ images/win/checkbox.png
+ images/win/editcopy.png
+ images/win/editcut.png
+ images/win/editpaste.png
+ images/win/editredo.png
+ images/win/editundo.png
+ images/win/exportpdf.png
+ images/win/filenew.png
+ images/win/fileopen.png
+ images/win/fileprint.png
+ images/win/filesave.png
+ images/win/format-indent-less.png
+ images/win/format-indent-more.png
+ images/win/textbold.png
+ images/win/textcenter.png
+ images/win/textitalic.png
+ images/win/textjustify.png
+ images/win/textleft.png
+ images/win/textright.png
+ images/win/textunder.png
+ images/win/zoomin.png
+ images/win/zoomout.png)
+
+
+#### Keys ignored in scope 1:.:.:textedit.pro:<TRUE>:
+# EXAMPLE_FILES = "textedit.qdoc"
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+extend_target(textedit CONDITION TARGET Qt::PrintSupport
+ PUBLIC_LIBRARIES
+ Qt::PrintSupport
+)
+
+#### Keys ignored in scope 3:.:.:textedit.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/scroller/CMakeLists.txt b/examples/widgets/scroller/CMakeLists.txt
new file mode 100644
index 0000000000..f663cd9890
--- /dev/null
+++ b/examples/widgets/scroller/CMakeLists.txt
@@ -0,0 +1,3 @@
+# Generated from scroller.pro.
+
+add_subdirectory(graphicsview)
diff --git a/examples/widgets/scroller/graphicsview/CMakeLists.txt b/examples/widgets/scroller/graphicsview/CMakeLists.txt
new file mode 100644
index 0000000000..0f25d6b71c
--- /dev/null
+++ b/examples/widgets/scroller/graphicsview/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from graphicsview.pro.
+
+#####################################################################
+## graphicsview Binary:
+#####################################################################
+
+add_qt_executable(graphicsview
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/scroller/graphicsview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/scroller/graphicsview"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:graphicsview.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/statemachine/CMakeLists.txt b/examples/widgets/statemachine/CMakeLists.txt
new file mode 100644
index 0000000000..8527fcbc69
--- /dev/null
+++ b/examples/widgets/statemachine/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Generated from statemachine.pro.
+
+add_subdirectory(factorial)
+add_subdirectory(pingpong)
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(eventtransitions)
+ add_subdirectory(rogue)
+ add_subdirectory(trafficlight)
+ add_subdirectory(twowaybutton)
+endif()
diff --git a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
new file mode 100644
index 0000000000..0fc20f59ae
--- /dev/null
+++ b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from eventtransitions.pro.
+
+#####################################################################
+## eventtransitions Binary:
+#####################################################################
+
+add_qt_executable(eventtransitions
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/eventtransitions"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/factorial/CMakeLists.txt b/examples/widgets/statemachine/factorial/CMakeLists.txt
new file mode 100644
index 0000000000..e38995220e
--- /dev/null
+++ b/examples/widgets/statemachine/factorial/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from factorial.pro.
+
+#####################################################################
+## factorial Binary:
+#####################################################################
+
+add_qt_executable(factorial
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/factorial"
+ SOURCES
+ main.cpp
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:factorial.pro:WIN32:
+# CONFIG = "console"
+
+#### Keys ignored in scope 3:.:factorial.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"
diff --git a/examples/widgets/statemachine/pingpong/CMakeLists.txt b/examples/widgets/statemachine/pingpong/CMakeLists.txt
new file mode 100644
index 0000000000..b911bd727f
--- /dev/null
+++ b/examples/widgets/statemachine/pingpong/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from pingpong.pro.
+
+#####################################################################
+## pingpong Binary:
+#####################################################################
+
+add_qt_executable(pingpong
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/pingpong"
+ SOURCES
+ main.cpp
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:pingpong.pro:WIN32:
+# CONFIG = "console"
+
+#### Keys ignored in scope 3:.:pingpong.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"
diff --git a/examples/widgets/statemachine/rogue/CMakeLists.txt b/examples/widgets/statemachine/rogue/CMakeLists.txt
new file mode 100644
index 0000000000..a6a1a473e1
--- /dev/null
+++ b/examples/widgets/statemachine/rogue/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from rogue.pro.
+
+#####################################################################
+## rogue Binary:
+#####################################################################
+
+add_qt_executable(rogue
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/rogue"
+ SOURCES
+ main.cpp
+ movementtransition.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/trafficlight/CMakeLists.txt b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
new file mode 100644
index 0000000000..52f9fb3c6c
--- /dev/null
+++ b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from trafficlight.pro.
+
+#####################################################################
+## trafficlight Binary:
+#####################################################################
+
+add_qt_executable(trafficlight
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/trafficlight"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
new file mode 100644
index 0000000000..c5f14b7514
--- /dev/null
+++ b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from twowaybutton.pro.
+
+#####################################################################
+## twowaybutton Binary:
+#####################################################################
+
+add_qt_executable(twowaybutton
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/statemachine/twowaybutton"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tools/CMakeLists.txt b/examples/widgets/tools/CMakeLists.txt
new file mode 100644
index 0000000000..90ac6fe86f
--- /dev/null
+++ b/examples/widgets/tools/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from tools.pro.
+
+add_subdirectory(codecs)
+add_subdirectory(completer)
+add_subdirectory(customcompleter)
+if(QT_FEATURE_translation) # special case
+ add_subdirectory(i18n)
+endif()
+add_subdirectory(regexp)
+add_subdirectory(regularexpression)
+add_subdirectory(settingseditor)
+add_subdirectory(styleplugin)
+add_subdirectory(treemodelcompleter)
+add_subdirectory(undo)
+add_subdirectory(undoframework)
+
+if(QT_FEATURE_library) # special case
+ add_subdirectory(echoplugin)
+ add_subdirectory(plugandpaint)
+endif()
diff --git a/examples/widgets/tools/codecs/CMakeLists.txt b/examples/widgets/tools/codecs/CMakeLists.txt
new file mode 100644
index 0000000000..703aa3fb47
--- /dev/null
+++ b/examples/widgets/tools/codecs/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from codecs.pro.
+
+#####################################################################
+## codecs Binary:
+#####################################################################
+
+add_qt_executable(codecs
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/codecs"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/codecs"
+ SOURCES
+ encodingdialog.cpp encodingdialog.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ previewform.cpp previewform.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(codecs "codecs" PREFIX "/" FILES
+ images/editcopy.png)
+
+
+#### Keys ignored in scope 1:.:.:codecs.pro:<TRUE>:
+# EXAMPLE_FILES = "encodedfiles"
diff --git a/examples/widgets/tools/completer/CMakeLists.txt b/examples/widgets/tools/completer/CMakeLists.txt
new file mode 100644
index 0000000000..b39b4f262d
--- /dev/null
+++ b/examples/widgets/tools/completer/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from completer.pro.
+
+#####################################################################
+## completer Binary:
+#####################################################################
+
+add_qt_executable(completer
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/completer"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/completer"
+ SOURCES
+ fsmodel.cpp fsmodel.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(completer "completer" PREFIX "/" FILES
+ resources/countries.txt
+ resources/wordlist.txt)
+
diff --git a/examples/widgets/tools/customcompleter/CMakeLists.txt b/examples/widgets/tools/customcompleter/CMakeLists.txt
new file mode 100644
index 0000000000..04f8035ff3
--- /dev/null
+++ b/examples/widgets/tools/customcompleter/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from customcompleter.pro.
+
+#####################################################################
+## customcompleter Binary:
+#####################################################################
+
+add_qt_executable(customcompleter
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/customcompleter"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/customcompleter"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ textedit.cpp textedit.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(customcompleter "customcompleter" PREFIX "/" FILES
+ resources/wordlist.txt)
+
diff --git a/examples/widgets/tools/echoplugin/CMakeLists.txt b/examples/widgets/tools/echoplugin/CMakeLists.txt
new file mode 100644
index 0000000000..b848e08e72
--- /dev/null
+++ b/examples/widgets/tools/echoplugin/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from echoplugin.pro.
+
+add_subdirectory(echowindow)
+add_subdirectory(plugin)
diff --git a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
new file mode 100644
index 0000000000..3c9082db07
--- /dev/null
+++ b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
@@ -0,0 +1,33 @@
+# Generated from echowindow.pro.
+
+#####################################################################
+## echoplugin Binary:
+#####################################################################
+
+add_qt_executable(echoplugin
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/echoplugin"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/echoplugin"
+ SOURCES
+ echointerface.h
+ echowindow.cpp echowindow.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:echowindow.pro:<NONE>:
+# CONFIG = "install_ok"
+# QMAKE_PROJECT_NAME = "echopluginwindow"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:echowindow.pro:CONFIG(debug,release OR debug):
+# DESTDIR = "../debug/"
+
+#### Keys ignored in scope 4:.:echowindow.pro:CONFIG(release,release OR debug):
+# DESTDIR = "../release/"
+
+#### Keys ignored in scope 5:.:echowindow.pro:else:
+# DESTDIR = "../"
diff --git a/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt
new file mode 100644
index 0000000000..7250a7e0a6
--- /dev/null
+++ b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from plugin.pro.
+
+#####################################################################
+## qtLibraryTargetechoplugin Module:
+#####################################################################
+
+add_qt_plugin(echoplugin_plugin TYPE plugin # special case
+ SOURCES
+ echoplugin.cpp echoplugin.h
+ INCLUDE_DIRECTORIES
+ ../echowindow
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:plugin.pro:<NONE>:
+# CONFIG = "plugin" "install_ok"
+# DESTDIR = "../plugins"
+# EXAMPLE_FILES = "echoplugin.json"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/echoplugin/plugins"
diff --git a/examples/widgets/tools/i18n/CMakeLists.txt b/examples/widgets/tools/i18n/CMakeLists.txt
new file mode 100644
index 0000000000..033362bb4c
--- /dev/null
+++ b/examples/widgets/tools/i18n/CMakeLists.txt
@@ -0,0 +1,38 @@
+# Generated from i18n.pro.
+
+#####################################################################
+## i18n Binary:
+#####################################################################
+
+add_qt_executable(i18n
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/i18n"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/i18n"
+ SOURCES
+ languagechooser.cpp languagechooser.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(i18n "i18n" FILES
+ translations/i18n_ar.qm
+ translations/i18n_cs.qm
+ translations/i18n_de.qm
+ translations/i18n_el.qm
+ translations/i18n_en.qm
+ translations/i18n_eo.qm
+ translations/i18n_fr.qm
+ translations/i18n_it.qm
+ translations/i18n_jp.qm
+ translations/i18n_ko.qm
+ translations/i18n_no.qm
+ translations/i18n_ru.qm
+ translations/i18n_sv.qm
+ translations/i18n_zh.qm)
+
+
+#### Keys ignored in scope 1:.:i18n.pro:<NONE>:
+# TRANSLATIONS = "translations/i18n_ar.ts" "translations/i18n_cs.ts" "translations/i18n_de.ts" "translations/i18n_el.ts" "translations/i18n_en.ts" "translations/i18n_eo.ts" "translations/i18n_fr.ts" "translations/i18n_it.ts" "translations/i18n_jp.ts" "translations/i18n_ko.ts" "translations/i18n_no.ts" "translations/i18n_ru.ts" "translations/i18n_sv.ts" "translations/i18n_zh.ts"
diff --git a/examples/widgets/tools/plugandpaint/CMakeLists.txt b/examples/widgets/tools/plugandpaint/CMakeLists.txt
new file mode 100644
index 0000000000..2bde4718b2
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from plugandpaint.pro.
+
+add_subdirectory(plugins)
+add_subdirectory(app)
diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
new file mode 100644
index 0000000000..e5bbbacec2
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from app.pro.
+
+#####################################################################
+## plugandpaint Binary:
+#####################################################################
+
+add_qt_executable(plugandpaint
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint"
+ SOURCES
+ interfaces.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ paintarea.cpp paintarea.h
+ plugindialog.cpp plugindialog.h
+ LIBRARIES
+ Qt::Widgets
+ pnp_basictools # special case
+)
+
+#### Keys ignored in scope 1:.:app.pro:<NONE>:
+# CONFIG = "install_ok"
+# DESTDIR = ".."
+
+## Scopes:
+#####################################################################
+
+# special case: Remove the rest
diff --git a/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt
new file mode 100644
index 0000000000..1e63da97ca
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from plugins.pro.
+
+add_subdirectory(basictools)
+add_subdirectory(extrafilters)
diff --git a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
new file mode 100644
index 0000000000..a059d0deab
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from basictools.pro.
+
+#####################################################################
+## qtLibraryTargetpnp_basictools Module:
+#####################################################################
+
+add_qt_plugin(pnp_basictools # special case
+ STATIC # special case
+ OUTPUT_DIRECTORY ../../plugins # special case
+ INSTALL_DIRECTORY ../../plugins # special case
+ ARCHIVE_INSTALL_DIRECTORY ../../plugins # special case
+ SOURCES
+ basictoolsplugin.cpp basictoolsplugin.h
+ INCLUDE_DIRECTORIES
+ ../../app
+ LIBRARIES
+ Qt::Widgets
+)
+
+# CONFIG = "plugin" "static" "install_ok"
+# DESTDIR = "../../plugins"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:basictools.pro:APPLE_UIKIT:
+# CONFIG = "debug_and_release"
diff --git a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
new file mode 100644
index 0000000000..a0447c833e
--- /dev/null
+++ b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from extrafilters.pro.
+
+#####################################################################
+## qtLibraryTargetpnp_extrafilters Module:
+#####################################################################
+
+add_qt_plugin(pnp_extrafilters_plugin TYPE plugin # special case
+ SOURCES
+ extrafiltersplugin.cpp extrafiltersplugin.h
+ INCLUDE_DIRECTORIES
+ ../../app
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:extrafilters.pro:<NONE>:
+# CONFIG = "plugin" "install_ok"
+# DESTDIR = "../../plugins"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:extrafilters.pro:APPLE_UIKIT:
+# CONFIG = "debug_and_release"
diff --git a/examples/widgets/tools/regexp/CMakeLists.txt b/examples/widgets/tools/regexp/CMakeLists.txt
new file mode 100644
index 0000000000..da729f5f5b
--- /dev/null
+++ b/examples/widgets/tools/regexp/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from regexp.pro.
+
+#####################################################################
+## regexp Binary:
+#####################################################################
+
+add_qt_executable(regexp
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/regexp"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/regexp"
+ SOURCES
+ main.cpp
+ regexpdialog.cpp regexpdialog.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tools/regularexpression/CMakeLists.txt b/examples/widgets/tools/regularexpression/CMakeLists.txt
new file mode 100644
index 0000000000..e9dcb977a2
--- /dev/null
+++ b/examples/widgets/tools/regularexpression/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from regularexpression.pro.
+
+#####################################################################
+## regularexpression Binary:
+#####################################################################
+
+add_qt_executable(regularexpression
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/regularexpression"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/regularexpression"
+ SOURCES
+ main.cpp
+ regularexpressiondialog.cpp regularexpressiondialog.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(regularexpression "regularexpression" FILES
+ images/copy.png)
+
diff --git a/examples/widgets/tools/settingseditor/CMakeLists.txt b/examples/widgets/tools/settingseditor/CMakeLists.txt
new file mode 100644
index 0000000000..ce260da358
--- /dev/null
+++ b/examples/widgets/tools/settingseditor/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from settingseditor.pro.
+
+#####################################################################
+## settingseditor Binary:
+#####################################################################
+
+add_qt_executable(settingseditor
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/settingseditor"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/settingseditor"
+ SOURCES
+ locationdialog.cpp locationdialog.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ settingstree.cpp settingstree.h
+ variantdelegate.cpp variantdelegate.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:settingseditor.pro:<NONE>:
+# EXAMPLE_FILES = "inifiles"
diff --git a/examples/widgets/tools/styleplugin/CMakeLists.txt b/examples/widgets/tools/styleplugin/CMakeLists.txt
new file mode 100644
index 0000000000..630c3703f8
--- /dev/null
+++ b/examples/widgets/tools/styleplugin/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from styleplugin.pro.
+
+add_subdirectory(stylewindow)
+add_subdirectory(plugin)
diff --git a/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt
new file mode 100644
index 0000000000..c311799d30
--- /dev/null
+++ b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from plugin.pro.
+
+#####################################################################
+## mplestyleplugin Module:
+#####################################################################
+
+add_qt_plugin(simplestyleplugin TYPE style # special case
+ SOURCES
+ simplestyle.cpp simplestyle.h
+ simplestyleplugin.cpp simplestyleplugin.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:plugin.pro:<NONE>:
+# CONFIG = "plugin" "install_ok"
+# EXAMPLE_FILES = "simplestyle.json"
+# INSTALLS = "target"
+# TEMPLATE = "lib"
+# target.path = "$$[QT_INSTALL_EXAMPLES]/widgets/tools/styleplugin/styles"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:plugin.pro:CONFIG(debug,release OR debug):
+# DESTDIR = "../debug/styles/"
+
+#### Keys ignored in scope 4:.:plugin.pro:CONFIG(release,release OR debug):
+# DESTDIR = "../release/styles/"
+
+#### Keys ignored in scope 5:.:plugin.pro:else:
+# DESTDIR = "../styles/"
diff --git a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
new file mode 100644
index 0000000000..a6d6a56874
--- /dev/null
+++ b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from stylewindow.pro.
+
+#####################################################################
+## styleplugin Binary:
+#####################################################################
+
+add_qt_executable(styleplugin
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/styleplugin"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/styleplugin"
+ SOURCES
+ main.cpp
+ stylewindow.cpp stylewindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:stylewindow.pro:<NONE>:
+# CONFIG = "install_ok"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:stylewindow.pro:debug:
+# DESTDIR = "../debug/"
+
+#### Keys ignored in scope 4:.:stylewindow.pro:release:
+# DESTDIR = "../release/"
+
+#### Keys ignored in scope 5:.:stylewindow.pro:else:
+# DESTDIR = "../"
diff --git a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
new file mode 100644
index 0000000000..ab4d60f290
--- /dev/null
+++ b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from treemodelcompleter.pro.
+
+#####################################################################
+## treemodelcompleter Binary:
+#####################################################################
+
+add_qt_executable(treemodelcompleter
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/treemodelcompleter"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/treemodelcompleter"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ treemodelcompleter.cpp treemodelcompleter.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(treemodelcompleter "treemodelcompleter" PREFIX "/" FILES
+ resources/treemodel.txt)
+
diff --git a/examples/widgets/tools/undo/CMakeLists.txt b/examples/widgets/tools/undo/CMakeLists.txt
new file mode 100644
index 0000000000..f3f1a5a436
--- /dev/null
+++ b/examples/widgets/tools/undo/CMakeLists.txt
@@ -0,0 +1,46 @@
+# Generated from undo.pro.
+
+#####################################################################
+## undo Binary:
+#####################################################################
+
+add_qt_executable(undo
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/undo"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/undo"
+ SOURCES
+ commands.cpp commands.h
+ document.cpp document.h
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(undo "undo" PREFIX "/" FILES
+ icons/background.png
+ icons/blue.png
+ icons/circle.png
+ icons/exit.png
+ icons/fileclose.png
+ icons/filenew.png
+ icons/fileopen.png
+ icons/filesave.png
+ icons/green.png
+ icons/ok.png
+ icons/rectangle.png
+ icons/red.png
+ icons/redo.png
+ icons/remove.png
+ icons/triangle.png
+ icons/undo.png)
+
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:undo.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/widgets/tools/undoframework/CMakeLists.txt b/examples/widgets/tools/undoframework/CMakeLists.txt
new file mode 100644
index 0000000000..0689d0df08
--- /dev/null
+++ b/examples/widgets/tools/undoframework/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from undoframework.pro.
+
+#####################################################################
+## undoframework Binary:
+#####################################################################
+
+add_qt_executable(undoframework
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/undoframework"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tools/undoframework"
+ SOURCES
+ commands.cpp commands.h
+ diagramitem.cpp diagramitem.h
+ diagramscene.cpp diagramscene.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(undoframework "undoframework" FILES
+ images/cross.png)
+
diff --git a/examples/widgets/touch/CMakeLists.txt b/examples/widgets/touch/CMakeLists.txt
new file mode 100644
index 0000000000..06b72cada7
--- /dev/null
+++ b/examples/widgets/touch/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from touch.pro.
+
+add_subdirectory(pinchzoom)
+add_subdirectory(fingerpaint)
+add_subdirectory(knobs)
+add_subdirectory(dials)
diff --git a/examples/widgets/touch/dials/CMakeLists.txt b/examples/widgets/touch/dials/CMakeLists.txt
new file mode 100644
index 0000000000..76920b0f3c
--- /dev/null
+++ b/examples/widgets/touch/dials/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from dials.pro.
+
+#####################################################################
+## dials Binary:
+#####################################################################
+
+add_qt_executable(dials
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/dials"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/dials"
+ SOURCES
+ dials.ui
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
diff --git a/examples/widgets/touch/fingerpaint/CMakeLists.txt b/examples/widgets/touch/fingerpaint/CMakeLists.txt
new file mode 100644
index 0000000000..82ec8cd91e
--- /dev/null
+++ b/examples/widgets/touch/fingerpaint/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from fingerpaint.pro.
+
+#####################################################################
+## fingerpaint Binary:
+#####################################################################
+
+add_qt_executable(fingerpaint
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/fingerpaint"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/fingerpaint"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ scribblearea.cpp scribblearea.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(fingerpaint CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/touch/knobs/CMakeLists.txt b/examples/widgets/touch/knobs/CMakeLists.txt
new file mode 100644
index 0000000000..e8976db270
--- /dev/null
+++ b/examples/widgets/touch/knobs/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from knobs.pro.
+
+#####################################################################
+## knobs Binary:
+#####################################################################
+
+add_qt_executable(knobs
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/knobs"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/knobs"
+ SOURCES
+ knob.cpp knob.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/touch/pinchzoom/CMakeLists.txt b/examples/widgets/touch/pinchzoom/CMakeLists.txt
new file mode 100644
index 0000000000..92d7b4c3b3
--- /dev/null
+++ b/examples/widgets/touch/pinchzoom/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from pinchzoom.pro.
+
+#####################################################################
+## pinchzoom Binary:
+#####################################################################
+
+add_qt_executable(pinchzoom
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/pinchzoom"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/pinchzoom"
+ SOURCES
+ graphicsview.cpp graphicsview.h
+ main.cpp
+ mouse.cpp mouse.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(pinchzoom "mice" PREFIX "/" FILES
+ images/cheese.jpg)
+
diff --git a/examples/widgets/tutorials/CMakeLists.txt b/examples/widgets/tutorials/CMakeLists.txt
new file mode 100644
index 0000000000..c2fa4a81d7
--- /dev/null
+++ b/examples/widgets/tutorials/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from tutorials.pro.
+
+add_subdirectory(addressbook)
+add_subdirectory(widgets)
+add_subdirectory(modelview)
+add_subdirectory(gettingStarted)
+add_subdirectory(notepad)
diff --git a/examples/widgets/tutorials/addressbook/CMakeLists.txt b/examples/widgets/tutorials/addressbook/CMakeLists.txt
new file mode 100644
index 0000000000..a8823d059a
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from addressbook.pro.
+
+add_subdirectory(part1)
+add_subdirectory(part2)
+add_subdirectory(part3)
+add_subdirectory(part4)
+add_subdirectory(part5)
+add_subdirectory(part6)
+add_subdirectory(part7)
diff --git a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
new file mode 100644
index 0000000000..dcfc424a24
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from part1.pro.
+
+#####################################################################
+## part1 Binary:
+#####################################################################
+
+add_qt_executable(part1
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part1"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part1"
+ SOURCES
+ addressbook.cpp addressbook.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part1.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part1"
diff --git a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
new file mode 100644
index 0000000000..b9fe9307ee
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from part2.pro.
+
+#####################################################################
+## part2 Binary:
+#####################################################################
+
+add_qt_executable(part2
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part2"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part2"
+ SOURCES
+ addressbook.cpp addressbook.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part2.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part2"
diff --git a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
new file mode 100644
index 0000000000..f83a8c5379
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from part3.pro.
+
+#####################################################################
+## part3 Binary:
+#####################################################################
+
+add_qt_executable(part3
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part3"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part3"
+ SOURCES
+ addressbook.cpp addressbook.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part3.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part3"
diff --git a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
new file mode 100644
index 0000000000..0dee5fab9a
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from part4.pro.
+
+#####################################################################
+## part4 Binary:
+#####################################################################
+
+add_qt_executable(part4
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part4"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part4"
+ SOURCES
+ addressbook.cpp addressbook.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part4.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part4"
diff --git a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
new file mode 100644
index 0000000000..564f044ba8
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from part5.pro.
+
+#####################################################################
+## part5 Binary:
+#####################################################################
+
+add_qt_executable(part5
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part5"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part5"
+ SOURCES
+ addressbook.cpp addressbook.h
+ finddialog.cpp finddialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part5.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part5"
diff --git a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
new file mode 100644
index 0000000000..375f1f0612
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from part6.pro.
+
+#####################################################################
+## part6 Binary:
+#####################################################################
+
+add_qt_executable(part6
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part6"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part6"
+ SOURCES
+ addressbook.cpp addressbook.h
+ finddialog.cpp finddialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part6.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part6"
diff --git a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
new file mode 100644
index 0000000000..1ccd87fff5
--- /dev/null
+++ b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from part7.pro.
+
+#####################################################################
+## part7 Binary:
+#####################################################################
+
+add_qt_executable(part7
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part7"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/addressbook/part7"
+ SOURCES
+ addressbook.cpp addressbook.h
+ finddialog.cpp finddialog.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:part7.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "ab_part7"
diff --git a/examples/widgets/tutorials/gettingStarted/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/CMakeLists.txt
new file mode 100644
index 0000000000..2aa8163029
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/CMakeLists.txt
@@ -0,0 +1,2 @@
+# Generated from gettingStarted.pro.
+
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/CMakeLists.txt
new file mode 100644
index 0000000000..7a9ade8511
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from gsqt.pro.
+
+add_subdirectory(part1)
+add_subdirectory(part2)
+add_subdirectory(part3)
+add_subdirectory(part4)
+add_subdirectory(part5)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
new file mode 100644
index 0000000000..c39133d235
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from part1.pro.
+
+#####################################################################
+## part1 Binary:
+#####################################################################
+
+add_qt_executable(part1
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part1"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part1"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
new file mode 100644
index 0000000000..ff9ddd6584
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from part2.pro.
+
+#####################################################################
+## part2 Binary:
+#####################################################################
+
+add_qt_executable(part2
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part2"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part2"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
new file mode 100644
index 0000000000..2564472be6
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from part3.pro.
+
+#####################################################################
+## part3 Binary:
+#####################################################################
+
+add_qt_executable(part3
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part3"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part3"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
new file mode 100644
index 0000000000..473b803044
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from part4.pro.
+
+#####################################################################
+## part4 Binary:
+#####################################################################
+
+add_qt_executable(part4
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part4"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part4"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
new file mode 100644
index 0000000000..93d2ea4175
--- /dev/null
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from part5.pro.
+
+#####################################################################
+## part5 Binary:
+#####################################################################
+
+add_qt_executable(part5
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part5"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part5"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
new file mode 100644
index 0000000000..1edda802f9
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 1_readonly.pro.
+
+#####################################################################
+## mv_readonly Binary:
+#####################################################################
+
+add_qt_executable(mv_readonly
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/1_readonly"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/1_readonly"
+ SOURCES
+ main.cpp
+ mymodel.cpp mymodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:1_readonly.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
new file mode 100644
index 0000000000..3235275d6a
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 2_formatting.pro.
+
+#####################################################################
+## mv_formatting Binary:
+#####################################################################
+
+add_qt_executable(mv_formatting
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/2_formatting"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/2_formatting"
+ SOURCES
+ main.cpp
+ mymodel.cpp mymodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:2_formatting.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
new file mode 100644
index 0000000000..746bafc19a
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 3_changingmodel.pro.
+
+#####################################################################
+## mv_changingmodel Binary:
+#####################################################################
+
+add_qt_executable(mv_changingmodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/3_changingmodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/3_changingmodel"
+ SOURCES
+ main.cpp
+ mymodel.cpp mymodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:3_changingmodel.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
new file mode 100644
index 0000000000..ef7e0a501b
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 4_headers.pro.
+
+#####################################################################
+## mv_headers Binary:
+#####################################################################
+
+add_qt_executable(mv_headers
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/4_headers"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/4_headers"
+ SOURCES
+ main.cpp
+ mymodel.cpp mymodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:4_headers.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
new file mode 100644
index 0000000000..2ce884a7fe
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from 5_edit.pro.
+
+#####################################################################
+## mv_edit Binary:
+#####################################################################
+
+add_qt_executable(mv_edit
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/5_edit"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/5_edit"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ mymodel.cpp mymodel.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:5_edit.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
new file mode 100644
index 0000000000..1d5a9425e5
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 6_treeview.pro.
+
+#####################################################################
+## mv_tree Binary:
+#####################################################################
+
+add_qt_executable(mv_tree
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/6_treeview"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/6_treeview"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:6_treeview.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
new file mode 100644
index 0000000000..0560dc7a60
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from 7_selections.pro.
+
+#####################################################################
+## mv_selections Binary:
+#####################################################################
+
+add_qt_executable(mv_selections
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/7_selections"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/7_selections"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:7_selections.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/tutorials/modelview/CMakeLists.txt b/examples/widgets/tutorials/modelview/CMakeLists.txt
new file mode 100644
index 0000000000..10f2cf6ecf
--- /dev/null
+++ b/examples/widgets/tutorials/modelview/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from modelview.pro.
+
+add_subdirectory(1_readonly)
+add_subdirectory(2_formatting)
+add_subdirectory(3_changingmodel)
+add_subdirectory(4_headers)
+add_subdirectory(5_edit)
+add_subdirectory(6_treeview)
+add_subdirectory(7_selections)
diff --git a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..6634c8c148
--- /dev/null
+++ b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt
@@ -0,0 +1,49 @@
+# Generated from notepad.pro.
+
+#####################################################################
+## notepad Binary:
+#####################################################################
+
+add_qt_executable(notepad
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/notepad"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/notepad"
+ SOURCES
+ main.cpp
+ notepad.cpp notepad.h notepad.ui
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(notepad "notepad" PREFIX "/" FILES
+ images/bold.png
+ images/copy.png
+ images/create.png
+ images/cut.png
+ images/edit_redo.png
+ images/edit_undo.png
+ images/exit.png
+ images/font.png
+ images/info.png
+ images/italic.png
+ images/new.png
+ images/open.png
+ images/paste.png
+ images/pencil.png
+ images/print.png
+ images/save.png
+ images/save_as.png
+ images/underline.png)
+
+
+#### Keys ignored in scope 1:.:.:notepad.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+extend_target(notepad CONDITION TARGET Qt::PrintSupport
+ PUBLIC_LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/tutorials/notepad/CMakeLists.txt b/examples/widgets/tutorials/notepad/CMakeLists.txt
new file mode 100644
index 0000000000..d34d3ca846
--- /dev/null
+++ b/examples/widgets/tutorials/notepad/CMakeLists.txt
@@ -0,0 +1,51 @@
+# Generated from notepad.pro.
+
+#####################################################################
+## notepad Binary:
+#####################################################################
+
+add_qt_executable(notepad
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/notepad"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/notepad"
+ SOURCES
+ main.cpp
+ notepad.cpp notepad.h notepad.ui
+ ENABLE_AUTOGEN_TOOLS
+ uic
+ LIBRARIES # special case
+ Qt::Widgets # special case
+)
+
+# Resources:
+add_qt_resource(notepad "notepad" PREFIX "/" FILES
+ images/bold.png
+ images/copy.png
+ images/create.png
+ images/cut.png
+ images/edit_redo.png
+ images/edit_undo.png
+ images/exit.png
+ images/font.png
+ images/info.png
+ images/italic.png
+ images/new.png
+ images/open.png
+ images/paste.png
+ images/pencil.png
+ images/print.png
+ images/save.png
+ images/save_as.png
+ images/underline.png)
+
+
+#### Keys ignored in scope 1:.:.:notepad.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+extend_target(notepad CONDITION TARGET Qt::PrintSupport
+ PUBLIC_LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/tutorials/widgets/CMakeLists.txt b/examples/widgets/tutorials/widgets/CMakeLists.txt
new file mode 100644
index 0000000000..1f4afee780
--- /dev/null
+++ b/examples/widgets/tutorials/widgets/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from widgets.pro.
+
+add_subdirectory(toplevel)
+add_subdirectory(childwidget)
+add_subdirectory(windowlayout)
+add_subdirectory(nestedlayouts)
diff --git a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
new file mode 100644
index 0000000000..823098c9fc
--- /dev/null
+++ b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from childwidget.pro.
+
+#####################################################################
+## childwidget Binary:
+#####################################################################
+
+add_qt_executable(childwidget
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/childwidget"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/childwidget"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
new file mode 100644
index 0000000000..7f88c89d80
--- /dev/null
+++ b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from nestedlayouts.pro.
+
+#####################################################################
+## nestedlayouts Binary:
+#####################################################################
+
+add_qt_executable(nestedlayouts
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/nestedlayouts"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/nestedlayouts"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
new file mode 100644
index 0000000000..2ef630033b
--- /dev/null
+++ b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from toplevel.pro.
+
+#####################################################################
+## toplevel Binary:
+#####################################################################
+
+add_qt_executable(toplevel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/toplevel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/toplevel"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
new file mode 100644
index 0000000000..157865b68c
--- /dev/null
+++ b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from windowlayout.pro.
+
+#####################################################################
+## windowlayout Binary:
+#####################################################################
+
+add_qt_executable(windowlayout
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/windowlayout"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/widgets/windowlayout"
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/CMakeLists.txt b/examples/widgets/widgets/CMakeLists.txt
new file mode 100644
index 0000000000..8daf6a69ae
--- /dev/null
+++ b/examples/widgets/widgets/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from widgets.pro.
+
+add_subdirectory(analogclock)
+add_subdirectory(calculator)
+add_subdirectory(calendarwidget)
+add_subdirectory(charactermap)
+add_subdirectory(codeeditor)
+add_subdirectory(digitalclock)
+add_subdirectory(elidedlabel)
+add_subdirectory(groupbox)
+add_subdirectory(icons)
+add_subdirectory(imageviewer)
+add_subdirectory(lineedits)
+add_subdirectory(movie)
+add_subdirectory(mousebuttons)
+add_subdirectory(scribble)
+add_subdirectory(shapedclock)
+add_subdirectory(sliders)
+add_subdirectory(spinboxes)
+add_subdirectory(styles)
+add_subdirectory(stylesheet)
+add_subdirectory(tablet)
+add_subdirectory(tetrix)
+add_subdirectory(tooltips)
+add_subdirectory(validators)
+add_subdirectory(wiggly)
+add_subdirectory(windowflags)
diff --git a/examples/widgets/widgets/analogclock/CMakeLists.txt b/examples/widgets/widgets/analogclock/CMakeLists.txt
new file mode 100644
index 0000000000..890a300294
--- /dev/null
+++ b/examples/widgets/widgets/analogclock/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from analogclock.pro.
+
+#####################################################################
+## analogclock Binary:
+#####################################################################
+
+add_qt_executable(analogclock_widgets # special case
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/analogclock"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/analogclock"
+ SOURCES
+ analogclock.cpp analogclock.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:analogclock.pro:<NONE>:
+# QMAKE_PROJECT_NAME = "widgets_analogclock"
diff --git a/examples/widgets/widgets/calculator/CMakeLists.txt b/examples/widgets/widgets/calculator/CMakeLists.txt
new file mode 100644
index 0000000000..b4f58b4f39
--- /dev/null
+++ b/examples/widgets/widgets/calculator/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from calculator.pro.
+
+#####################################################################
+## calculator Binary:
+#####################################################################
+
+add_qt_executable(calculator
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calculator"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calculator"
+ SOURCES
+ button.cpp button.h
+ calculator.cpp calculator.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/calendarwidget/CMakeLists.txt b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
new file mode 100644
index 0000000000..463fce3849
--- /dev/null
+++ b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from calendarwidget.pro.
+
+#####################################################################
+## calendarwidget Binary:
+#####################################################################
+
+add_qt_executable(calendarwidget
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calendarwidget"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calendarwidget"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/charactermap/CMakeLists.txt b/examples/widgets/widgets/charactermap/CMakeLists.txt
new file mode 100644
index 0000000000..a09b63a4f7
--- /dev/null
+++ b/examples/widgets/widgets/charactermap/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from charactermap.pro.
+
+#####################################################################
+## charactermap Binary:
+#####################################################################
+
+add_qt_executable(charactermap
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/charactermap"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/charactermap"
+ SOURCES
+ characterwidget.cpp characterwidget.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/codeeditor/CMakeLists.txt b/examples/widgets/widgets/codeeditor/CMakeLists.txt
new file mode 100644
index 0000000000..7c29d383ff
--- /dev/null
+++ b/examples/widgets/widgets/codeeditor/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from codeeditor.pro.
+
+#####################################################################
+## codeeditor Binary:
+#####################################################################
+
+add_qt_executable(codeeditor
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/codeeditor"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/codeeditor"
+ SOURCES
+ codeeditor.cpp codeeditor.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/digitalclock/CMakeLists.txt b/examples/widgets/widgets/digitalclock/CMakeLists.txt
new file mode 100644
index 0000000000..b85528a1e8
--- /dev/null
+++ b/examples/widgets/widgets/digitalclock/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from digitalclock.pro.
+
+#####################################################################
+## digitalclock Binary:
+#####################################################################
+
+add_qt_executable(digitalclock
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/digitalclock"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/digitalclock"
+ SOURCES
+ digitalclock.cpp digitalclock.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/elidedlabel/CMakeLists.txt b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
new file mode 100644
index 0000000000..b894e18692
--- /dev/null
+++ b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from elidedlabel.pro.
+
+#####################################################################
+## elidedlabel Binary:
+#####################################################################
+
+add_qt_executable(elidedlabel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/elidedlabel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/elidedlabel"
+ SOURCES
+ elidedlabel.cpp elidedlabel.h
+ main.cpp
+ testwidget.cpp testwidget.h
+ LIBRARIES
+ Qt::Gui
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:elidedlabel.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/widgets/groupbox/CMakeLists.txt b/examples/widgets/widgets/groupbox/CMakeLists.txt
new file mode 100644
index 0000000000..1d77ab37dc
--- /dev/null
+++ b/examples/widgets/widgets/groupbox/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from groupbox.pro.
+
+#####################################################################
+## groupbox Binary:
+#####################################################################
+
+add_qt_executable(groupbox
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/groupbox"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/groupbox"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/icons/CMakeLists.txt b/examples/widgets/widgets/icons/CMakeLists.txt
new file mode 100644
index 0000000000..34d9bcec94
--- /dev/null
+++ b/examples/widgets/widgets/icons/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from icons.pro.
+
+#####################################################################
+## icons Binary:
+#####################################################################
+
+add_qt_executable(icons
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/icons"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/icons"
+ SOURCES
+ iconpreviewarea.cpp iconpreviewarea.h
+ iconsizespinbox.cpp iconsizespinbox.h
+ imagedelegate.cpp imagedelegate.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ DEFINES
+ SRCDIR=\\\"/\\\"
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:icons.pro:<NONE>:
+# EXAMPLE_FILES = "images/*"
diff --git a/examples/widgets/widgets/imageviewer/CMakeLists.txt b/examples/widgets/widgets/imageviewer/CMakeLists.txt
new file mode 100644
index 0000000000..4684653e64
--- /dev/null
+++ b/examples/widgets/widgets/imageviewer/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from imageviewer.pro.
+
+#####################################################################
+## imageviewer Binary:
+#####################################################################
+
+add_qt_executable(imageviewer
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/imageviewer"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/imageviewer"
+ SOURCES
+ imageviewer.cpp imageviewer.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(imageviewer CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/widgets/lineedits/CMakeLists.txt b/examples/widgets/widgets/lineedits/CMakeLists.txt
new file mode 100644
index 0000000000..59406a703d
--- /dev/null
+++ b/examples/widgets/widgets/lineedits/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from lineedits.pro.
+
+#####################################################################
+## lineedits Binary:
+#####################################################################
+
+add_qt_executable(lineedits
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/lineedits"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/lineedits"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/mousebuttons/CMakeLists.txt b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
new file mode 100644
index 0000000000..6ec817458c
--- /dev/null
+++ b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from mousebuttons.pro.
+
+#####################################################################
+## mousebuttons Binary:
+#####################################################################
+
+add_qt_executable(mousebuttons
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/mousebuttons"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/mousebuttons"
+ SOURCES
+ buttontester.cpp buttontester.h
+ main.cpp
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:mousebuttons.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/widgets/widgets/movie/CMakeLists.txt b/examples/widgets/widgets/movie/CMakeLists.txt
new file mode 100644
index 0000000000..0df3465fea
--- /dev/null
+++ b/examples/widgets/widgets/movie/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from movie.pro.
+
+#####################################################################
+## movie Binary:
+#####################################################################
+
+add_qt_executable(movie
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/movie"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/movie"
+ SOURCES
+ main.cpp
+ movieplayer.cpp movieplayer.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:movie.pro:<NONE>:
+# EXAMPLE_FILES = "animation.gif"
diff --git a/examples/widgets/widgets/scribble/CMakeLists.txt b/examples/widgets/widgets/scribble/CMakeLists.txt
new file mode 100644
index 0000000000..d9b2292336
--- /dev/null
+++ b/examples/widgets/widgets/scribble/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from scribble.pro.
+
+#####################################################################
+## scribble Binary:
+#####################################################################
+
+add_qt_executable(scribble
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/scribble"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/scribble"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ scribblearea.cpp scribblearea.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(scribble CONDITION TARGET Qt::PrintSupport
+ LIBRARIES
+ Qt::PrintSupport
+)
diff --git a/examples/widgets/widgets/shapedclock/CMakeLists.txt b/examples/widgets/widgets/shapedclock/CMakeLists.txt
new file mode 100644
index 0000000000..ab199d6981
--- /dev/null
+++ b/examples/widgets/widgets/shapedclock/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from shapedclock.pro.
+
+#####################################################################
+## shapedclock Binary:
+#####################################################################
+
+add_qt_executable(shapedclock
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/shapedclock"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/shapedclock"
+ SOURCES
+ main.cpp
+ shapedclock.cpp shapedclock.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/sliders/CMakeLists.txt b/examples/widgets/widgets/sliders/CMakeLists.txt
new file mode 100644
index 0000000000..a064ad5a4a
--- /dev/null
+++ b/examples/widgets/widgets/sliders/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from sliders.pro.
+
+#####################################################################
+## sliders Binary:
+#####################################################################
+
+add_qt_executable(sliders
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/sliders"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/sliders"
+ SOURCES
+ main.cpp
+ slidersgroup.cpp slidersgroup.h
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/spinboxes/CMakeLists.txt b/examples/widgets/widgets/spinboxes/CMakeLists.txt
new file mode 100644
index 0000000000..8635f06a8e
--- /dev/null
+++ b/examples/widgets/widgets/spinboxes/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from spinboxes.pro.
+
+#####################################################################
+## spinboxes Binary:
+#####################################################################
+
+add_qt_executable(spinboxes
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/spinboxes"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/spinboxes"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/styles/CMakeLists.txt b/examples/widgets/widgets/styles/CMakeLists.txt
new file mode 100644
index 0000000000..d33d90a5bc
--- /dev/null
+++ b/examples/widgets/widgets/styles/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from styles.pro.
+
+#####################################################################
+## styles Binary:
+#####################################################################
+
+add_qt_executable(styles
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/styles"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/styles"
+ SOURCES
+ main.cpp
+ norwegianwoodstyle.cpp norwegianwoodstyle.h
+ widgetgallery.cpp widgetgallery.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(styles "styles" FILES
+ images/woodbackground.png
+ images/woodbutton.png)
+
diff --git a/examples/widgets/widgets/stylesheet/CMakeLists.txt b/examples/widgets/widgets/stylesheet/CMakeLists.txt
new file mode 100644
index 0000000000..227eb13b68
--- /dev/null
+++ b/examples/widgets/widgets/stylesheet/CMakeLists.txt
@@ -0,0 +1,58 @@
+# Generated from stylesheet.pro.
+
+#####################################################################
+## stylesheet Binary:
+#####################################################################
+
+add_qt_executable(stylesheet
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/stylesheet"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/stylesheet"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h mainwindow.ui
+ stylesheeteditor.cpp stylesheeteditor.h stylesheeteditor.ui
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(stylesheet "stylesheet" PREFIX "/" FILES
+ images/checkbox_checked.png
+ images/checkbox_checked_hover.png
+ images/checkbox_checked_pressed.png
+ images/checkbox_unchecked.png
+ images/checkbox_unchecked_hover.png
+ images/checkbox_unchecked_pressed.png
+ images/down_arrow.png
+ images/down_arrow_disabled.png
+ images/frame.png
+ images/pagefold.png
+ images/pushbutton.png
+ images/pushbutton_hover.png
+ images/pushbutton_pressed.png
+ images/radiobutton_checked.png
+ images/radiobutton_checked_hover.png
+ images/radiobutton_checked_pressed.png
+ images/radiobutton_unchecked.png
+ images/radiobutton_unchecked_hover.png
+ images/radiobutton_unchecked_pressed.png
+ images/sizegrip.png
+ images/spindown.png
+ images/spindown_hover.png
+ images/spindown_off.png
+ images/spindown_pressed.png
+ images/spinup.png
+ images/spinup_hover.png
+ images/spinup_off.png
+ images/spinup_pressed.png
+ images/up_arrow.png
+ images/up_arrow_disabled.png
+ layouts/default.ui
+ layouts/pagefold.ui
+ qss/coffee.qss
+ qss/default.qss
+ qss/pagefold.qss)
+
diff --git a/examples/widgets/widgets/tablet/CMakeLists.txt b/examples/widgets/widgets/tablet/CMakeLists.txt
new file mode 100644
index 0000000000..f23fe7ec71
--- /dev/null
+++ b/examples/widgets/widgets/tablet/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from tablet.pro.
+
+#####################################################################
+## qttablet Binary:
+#####################################################################
+
+add_qt_executable(qttablet
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tablet"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tablet"
+ SOURCES
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ tabletapplication.cpp tabletapplication.h
+ tabletcanvas.cpp tabletcanvas.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(qttablet "images" FILES
+ images/cursor-airbrush.png
+ images/cursor-eraser.png
+ images/cursor-felt-marker.png
+ images/cursor-pencil.png)
+
diff --git a/examples/widgets/widgets/tetrix/CMakeLists.txt b/examples/widgets/widgets/tetrix/CMakeLists.txt
new file mode 100644
index 0000000000..002667a6b9
--- /dev/null
+++ b/examples/widgets/widgets/tetrix/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from tetrix.pro.
+
+#####################################################################
+## tetrix Binary:
+#####################################################################
+
+add_qt_executable(tetrix
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tetrix"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tetrix"
+ SOURCES
+ main.cpp
+ tetrixboard.cpp tetrixboard.h
+ tetrixpiece.cpp tetrixpiece.h
+ tetrixwindow.cpp tetrixwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/tooltips/CMakeLists.txt b/examples/widgets/widgets/tooltips/CMakeLists.txt
new file mode 100644
index 0000000000..02d773858a
--- /dev/null
+++ b/examples/widgets/widgets/tooltips/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from tooltips.pro.
+
+#####################################################################
+## tooltips Binary:
+#####################################################################
+
+add_qt_executable(tooltips
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tooltips"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/tooltips"
+ SOURCES
+ main.cpp
+ shapeitem.cpp shapeitem.h
+ sortingbox.cpp sortingbox.h
+ LIBRARIES
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(tooltips "tooltips" FILES
+ images/circle.png
+ images/square.png
+ images/triangle.png)
+
diff --git a/examples/widgets/widgets/validators/CMakeLists.txt b/examples/widgets/widgets/validators/CMakeLists.txt
new file mode 100644
index 0000000000..ef981d9eb7
--- /dev/null
+++ b/examples/widgets/widgets/validators/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from validators.pro.
+
+#####################################################################
+## validators Binary:
+#####################################################################
+
+add_qt_executable(validators
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/validators"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/validators"
+ SOURCES
+ ledwidget.cpp ledwidget.h
+ localeselector.cpp localeselector.h
+ main.cpp
+ validators.ui
+ validatorwidget.cpp validatorwidget.h
+ PUBLIC_LIBRARIES
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+# Resources:
+add_qt_resource(validators "validators" PREFIX "/" FILES
+ ledoff.png
+ ledon.png)
+
diff --git a/examples/widgets/widgets/wiggly/CMakeLists.txt b/examples/widgets/widgets/wiggly/CMakeLists.txt
new file mode 100644
index 0000000000..cc8c0befbf
--- /dev/null
+++ b/examples/widgets/widgets/wiggly/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from wiggly.pro.
+
+#####################################################################
+## wiggly Binary:
+#####################################################################
+
+add_qt_executable(wiggly
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/wiggly"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/wiggly"
+ SOURCES
+ dialog.cpp dialog.h
+ main.cpp
+ wigglywidget.cpp wigglywidget.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/widgets/windowflags/CMakeLists.txt b/examples/widgets/widgets/windowflags/CMakeLists.txt
new file mode 100644
index 0000000000..aa2eff0088
--- /dev/null
+++ b/examples/widgets/widgets/windowflags/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from windowflags.pro.
+
+#####################################################################
+## windowflags Binary:
+#####################################################################
+
+add_qt_executable(windowflags
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/windowflags"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/windowflags"
+ SOURCES
+ controllerwindow.cpp controllerwindow.h
+ main.cpp
+ previewwindow.cpp previewwindow.h
+ LIBRARIES
+ Qt::Widgets
+)
diff --git a/examples/widgets/windowcontainer/CMakeLists.txt b/examples/widgets/windowcontainer/CMakeLists.txt
new file mode 100644
index 0000000000..88dc37ea5e
--- /dev/null
+++ b/examples/widgets/windowcontainer/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from windowcontainer.pro.
+
+#####################################################################
+## windowcontainer Binary:
+#####################################################################
+
+add_qt_executable(windowcontainer
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/windowcontainer"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/windowcontainer"
+ SOURCES
+ ../../gui/openglwindow/openglwindow.cpp ../../gui/openglwindow/openglwindow.h
+ windowcontainer.cpp
+ INCLUDE_DIRECTORIES
+ ../../gui/openglwindow
+ LIBRARIES
+ Qt::Widgets
+)