summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/corelib/ipc/localfortuneclient/CMakeLists.txt4
-rw-r--r--examples/corelib/ipc/localfortuneserver/CMakeLists.txt4
-rw-r--r--examples/corelib/ipc/sharedmemory/CMakeLists.txt4
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt4
-rw-r--r--examples/corelib/serialization/cbordump/CMakeLists.txt4
-rw-r--r--examples/corelib/serialization/convert/CMakeLists.txt4
-rw-r--r--examples/corelib/serialization/savegame/CMakeLists.txt4
-rw-r--r--examples/corelib/threads/mandelbrot/CMakeLists.txt4
-rw-r--r--examples/corelib/threads/queuedcustomtype/CMakeLists.txt4
-rw-r--r--examples/corelib/threads/semaphores/CMakeLists.txt4
-rw-r--r--examples/corelib/threads/waitconditions/CMakeLists.txt4
-rw-r--r--examples/corelib/tools/contiguouscache/CMakeLists.txt4
-rw-r--r--examples/corelib/tools/customtype/CMakeLists.txt4
-rw-r--r--examples/corelib/tools/customtypesending/CMakeLists.txt4
-rw-r--r--examples/dbus/chat/.prev_CMakeLists.txt4
-rw-r--r--examples/dbus/chat/CMakeLists.txt4
-rw-r--r--examples/dbus/complexpingpong/CMakeLists.txt8
-rw-r--r--examples/dbus/listnames/CMakeLists.txt10
-rw-r--r--examples/dbus/pingpong/CMakeLists.txt8
-rw-r--r--examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt4
-rw-r--r--examples/dbus/remotecontrolledcar/car/CMakeLists.txt4
-rw-r--r--examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt4
-rw-r--r--examples/dbus/remotecontrolledcar/controller/CMakeLists.txt4
-rw-r--r--examples/embedded/digiflip/CMakeLists.txt4
-rw-r--r--examples/embedded/flickable/CMakeLists.txt4
-rw-r--r--examples/embedded/flightinfo/CMakeLists.txt4
-rw-r--r--examples/embedded/lightmaps/CMakeLists.txt4
-rw-r--r--examples/embedded/raycasting/CMakeLists.txt4
-rw-r--r--examples/embedded/styleexample/CMakeLists.txt4
-rw-r--r--examples/gui/analogclock/.prev_CMakeLists.txt4
-rw-r--r--examples/gui/analogclock/CMakeLists.txt4
-rw-r--r--examples/gui/rasterwindow/.prev_CMakeLists.txt4
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt4
-rw-r--r--examples/network/blockingfortuneclient/CMakeLists.txt4
-rw-r--r--examples/network/broadcastreceiver/CMakeLists.txt4
-rw-r--r--examples/network/broadcastsender/CMakeLists.txt4
-rw-r--r--examples/network/dnslookup/CMakeLists.txt4
-rw-r--r--examples/network/download/CMakeLists.txt4
-rw-r--r--examples/network/downloadmanager/CMakeLists.txt4
-rw-r--r--examples/network/fortuneclient/CMakeLists.txt4
-rw-r--r--examples/network/fortuneserver/CMakeLists.txt4
-rw-r--r--examples/network/googlesuggest/CMakeLists.txt4
-rw-r--r--examples/network/http/CMakeLists.txt4
-rw-r--r--examples/network/loopback/CMakeLists.txt4
-rw-r--r--examples/network/multicastreceiver/CMakeLists.txt4
-rw-r--r--examples/network/multicastsender/CMakeLists.txt4
-rw-r--r--examples/network/multistreamclient/CMakeLists.txt4
-rw-r--r--examples/network/multistreamserver/CMakeLists.txt4
-rw-r--r--examples/network/network-chat/CMakeLists.txt4
-rw-r--r--examples/network/securesocketclient/CMakeLists.txt4
-rw-r--r--examples/network/secureudpclient/CMakeLists.txt4
-rw-r--r--examples/network/secureudpserver/CMakeLists.txt4
-rw-r--r--examples/network/threadedfortuneserver/CMakeLists.txt4
-rw-r--r--examples/network/torrent/.prev_CMakeLists.txt4
-rw-r--r--examples/network/torrent/CMakeLists.txt4
-rw-r--r--examples/opengl/2dpainting/CMakeLists.txt4
-rw-r--r--examples/opengl/computegles31/CMakeLists.txt4
-rw-r--r--examples/opengl/contextinfo/CMakeLists.txt4
-rw-r--r--examples/opengl/cube/CMakeLists.txt4
-rw-r--r--examples/opengl/hellogl2/CMakeLists.txt4
-rw-r--r--examples/opengl/hellogles3/CMakeLists.txt4
-rw-r--r--examples/opengl/hellowindow/CMakeLists.txt4
-rw-r--r--examples/opengl/openglwindow/CMakeLists.txt4
-rw-r--r--examples/opengl/paintedwindow/CMakeLists.txt4
-rw-r--r--examples/opengl/qopenglwidget/CMakeLists.txt4
-rw-r--r--examples/opengl/qopenglwindow/CMakeLists.txt4
-rw-r--r--examples/opengl/textures/CMakeLists.txt4
-rw-r--r--examples/opengl/threadedqopenglwidget/CMakeLists.txt4
-rw-r--r--examples/qpa/qrasterwindow/CMakeLists.txt4
-rw-r--r--examples/qpa/windows/CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/imagescaling/CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/map/.prev_CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/map/CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/progressdialog/CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/runfunction/CMakeLists.txt4
-rw-r--r--examples/qtconcurrent/wordcount/CMakeLists.txt4
-rw-r--r--examples/qtestlib/tutorial1/CMakeLists.txt4
-rw-r--r--examples/qtestlib/tutorial2/CMakeLists.txt4
-rw-r--r--examples/qtestlib/tutorial3/CMakeLists.txt4
-rw-r--r--examples/qtestlib/tutorial4/CMakeLists.txt4
-rw-r--r--examples/qtestlib/tutorial5/CMakeLists.txt4
-rw-r--r--examples/sql/books/CMakeLists.txt4
-rw-r--r--examples/sql/cachedtable/CMakeLists.txt4
-rw-r--r--examples/sql/drilldown/CMakeLists.txt4
-rw-r--r--examples/sql/masterdetail/CMakeLists.txt4
-rw-r--r--examples/sql/querymodel/CMakeLists.txt4
-rw-r--r--examples/sql/relationaltablemodel/CMakeLists.txt4
-rw-r--r--examples/sql/sqlbrowser/CMakeLists.txt4
-rw-r--r--examples/sql/sqlwidgetmapper/CMakeLists.txt4
-rw-r--r--examples/sql/tablemodel/CMakeLists.txt4
-rw-r--r--examples/vulkan/hellovulkancubes/CMakeLists.txt4
-rw-r--r--examples/vulkan/hellovulkantexture/CMakeLists.txt4
-rw-r--r--examples/vulkan/hellovulkantriangle/CMakeLists.txt4
-rw-r--r--examples/vulkan/hellovulkanwidget/CMakeLists.txt4
-rw-r--r--examples/vulkan/hellovulkanwindow/CMakeLists.txt4
-rw-r--r--examples/widgets/animation/easing/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/classwizard/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/extension/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/findfiles/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/licensewizard/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/standarddialogs/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/tabdialog/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/trivialwizard/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/draggableicons/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/draggabletext/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/dropsite/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/puzzle/CMakeLists.txt4
-rw-r--r--examples/widgets/effects/blurpicker/CMakeLists.txt4
-rw-r--r--examples/widgets/effects/fademessage/CMakeLists.txt4
-rw-r--r--examples/widgets/gallery/CMakeLists.txt4
-rw-r--r--examples/widgets/gestures/imagegestures/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/anchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/chip/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/chip/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/collidingmice/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/diagramscene/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/elasticnodes/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/flowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/addressbook/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/chart/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/dirview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/editabletreemodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/fetchmore/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/flattreeview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/frozencolumn/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/interview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/pixelator/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/puzzle/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simpledommodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simpletreemodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spreadsheet/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/stardelegate/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/storageview/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/basiclayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/borderlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/dynamiclayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/flowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/application/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/dockwidgets/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/mainwindow/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/mdi/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/menus/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/sdi/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/affine/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/affine/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/basicdrawing/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/composition/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/composition/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/concentriccircles/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/deform/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/deform/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/fontsampler/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/gradients/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/gradients/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/imagecomposition/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/painterpaths/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/pathstroke/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/transformations/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/calendar/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/orderform/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/textedit/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/textedit/CMakeLists.txt4
-rw-r--r--examples/widgets/scroller/graphicsview/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/completer/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/customcompleter/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/plugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/i18n/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/regularexpression/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/settingseditor/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/styleplugin/plugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/treemodelcompleter/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/undo/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/undoframework/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/dials/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/touch/fingerpaint/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/knobs/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/pinchzoom/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part1/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part2/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part3/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part4/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part5/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part6/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part7/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/notepad/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/notepad/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/analogclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/calculator/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/calendarwidget/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/charactermap/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/codeeditor/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/digitalclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/elidedlabel/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/groupbox/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/icons/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/icons/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/imageviewer/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/lineedits/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/mousebuttons/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/movie/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/scribble/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/scribble/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/shapedclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/sliders/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/spinboxes/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/styles/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/stylesheet/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tablet/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tetrix/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tooltips/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/validators/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/wiggly/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/windowflags/CMakeLists.txt4
-rw-r--r--examples/widgets/windowcontainer/CMakeLists.txt4
-rw-r--r--examples/xml/dombookmarks/CMakeLists.txt4
-rw-r--r--examples/xml/htmlinfo/CMakeLists.txt4
-rw-r--r--examples/xml/rsslisting/CMakeLists.txt4
-rw-r--r--examples/xml/streambookmarks/CMakeLists.txt4
-rw-r--r--examples/xml/xmlstreamlint/.prev_CMakeLists.txt4
-rw-r--r--examples/xml/xmlstreamlint/CMakeLists.txt4
266 files changed, 1078 insertions, 0 deletions
diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
index 837e686465d..b01023b0096 100644
--- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(localfortuneclient
client.cpp client.h
main.cpp
)
+set_target_properties(localfortuneclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(localfortuneclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
index e459913c6fa..86cd90a3cf8 100644
--- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(localfortuneserver
main.cpp
server.cpp server.h
)
+set_target_properties(localfortuneserver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(localfortuneserver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
index 5205cc654bf..74580e94727 100644
--- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt
+++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(sharedmemory
dialog.cpp dialog.h dialog.ui
main.cpp
)
+set_target_properties(sharedmemory PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sharedmemory PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
index d22ad9d812f..977c072e00d 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
+++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(mimetypebrowser
mainwindow.cpp mainwindow.h
mimetypemodel.cpp mimetypemodel.h
)
+set_target_properties(mimetypebrowser PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(mimetypebrowser PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt
index 7397d8c1b36..542c6f5ad0a 100644
--- a/examples/corelib/serialization/cbordump/CMakeLists.txt
+++ b/examples/corelib/serialization/cbordump/CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(cbordump
main.cpp
)
+set_target_properties(cbordump PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(cbordump PUBLIC
Qt::Core
)
diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt
index 8c2d4c01327..0f2897441a3 100644
--- a/examples/corelib/serialization/convert/CMakeLists.txt
+++ b/examples/corelib/serialization/convert/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(convert
textconverter.cpp textconverter.h
xmlconverter.cpp xmlconverter.h
)
+set_target_properties(convert PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(convert PUBLIC
Qt::Core
)
diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt
index 68adf452096..b0b410bbc50 100644
--- a/examples/corelib/serialization/savegame/CMakeLists.txt
+++ b/examples/corelib/serialization/savegame/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(savegame
level.cpp level.h
main.cpp
)
+set_target_properties(savegame PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(savegame PUBLIC
Qt::Core
)
diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt
index 41479002263..96136522f7c 100644
--- a/examples/corelib/threads/mandelbrot/CMakeLists.txt
+++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(mandelbrot
mandelbrotwidget.cpp mandelbrotwidget.h
renderthread.cpp renderthread.h
)
+set_target_properties(mandelbrot PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mandelbrot PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
index 62b1cd5e9ab..93c26318f68 100644
--- a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
+++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(queuedcustomtype
renderthread.cpp renderthread.h
window.cpp window.h
)
+set_target_properties(queuedcustomtype PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(queuedcustomtype PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt
index 117f761fd5d..f79e241fccd 100644
--- a/examples/corelib/threads/semaphores/CMakeLists.txt
+++ b/examples/corelib/threads/semaphores/CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(semaphores
semaphores.cpp
)
+set_target_properties(semaphores PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(semaphores PUBLIC
Qt::Core
)
diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt
index 0449e537c5a..9581dd58e90 100644
--- a/examples/corelib/threads/waitconditions/CMakeLists.txt
+++ b/examples/corelib/threads/waitconditions/CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(waitconditions
waitconditions.cpp
)
+set_target_properties(waitconditions PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(waitconditions PUBLIC
Qt::Core
)
diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt
index a8aef5f94bb..7650bdd4aca 100644
--- a/examples/corelib/tools/contiguouscache/CMakeLists.txt
+++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(contiguouscache
main.cpp
randomlistmodel.cpp randomlistmodel.h
)
+set_target_properties(contiguouscache PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(contiguouscache PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt
index e36157e9f67..68c1784bded 100644
--- a/examples/corelib/tools/customtype/CMakeLists.txt
+++ b/examples/corelib/tools/customtype/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(customtype
main.cpp
message.cpp message.h
)
+set_target_properties(customtype PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customtype PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt
index 0b1af630aea..1b67e232204 100644
--- a/examples/corelib/tools/customtypesending/CMakeLists.txt
+++ b/examples/corelib/tools/customtypesending/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(customtypesending
message.cpp message.h
window.cpp window.h
)
+set_target_properties(customtypesending PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customtypesending PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/dbus/chat/.prev_CMakeLists.txt b/examples/dbus/chat/.prev_CMakeLists.txt
index 601c28429ec..9396cce3acc 100644
--- a/examples/dbus/chat/.prev_CMakeLists.txt
+++ b/examples/dbus/chat/.prev_CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(chat
chatmainwindow.ui
chatsetnickname.ui
)
+set_target_properties(chat PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chat PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt
index 2ff002dd8d7..998ffb5f25c 100644
--- a/examples/dbus/chat/CMakeLists.txt
+++ b/examples/dbus/chat/CMakeLists.txt
@@ -39,6 +39,10 @@ qt_add_executable(chat
chatsetnickname.ui
${chat_SRCS} # special case
)
+set_target_properties(chat PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chat PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt
index 414dbd82167..5cf1c2e9e39 100644
--- a/examples/dbus/complexpingpong/CMakeLists.txt
+++ b/examples/dbus/complexpingpong/CMakeLists.txt
@@ -21,6 +21,10 @@ qt_add_executable(complexping
complexping.cpp complexping.h
ping-common.h
)
+set_target_properties(complexping PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(complexping PUBLIC
# Remove: gui
Qt::DBus
@@ -51,6 +55,10 @@ find_package(Qt6 COMPONENTS DBus)
qt_add_executable(complexpong
complexpong.cpp complexpong.h
)
+set_target_properties(complexpong PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(complexpong PUBLIC
# Remove: gui
Qt::DBus
diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt
index ed3a55118f1..a1907648b19 100644
--- a/examples/dbus/listnames/CMakeLists.txt
+++ b/examples/dbus/listnames/CMakeLists.txt
@@ -21,11 +21,21 @@ find_package(Qt6 COMPONENTS DBus)
qt_add_executable(listnames
listnames.cpp
)
+set_target_properties(listnames PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(listnames PUBLIC
Qt::Core
Qt::DBus
)
+if(WIN32)
+ set_target_properties(listnames PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ )
+endif()
+
install(TARGETS listnames
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt
index beea918511d..41b8f1b0580 100644
--- a/examples/dbus/pingpong/CMakeLists.txt
+++ b/examples/dbus/pingpong/CMakeLists.txt
@@ -21,6 +21,10 @@ qt_add_executable(ping
ping.cpp
ping-common.h
)
+set_target_properties(ping PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(ping PUBLIC
# Remove: gui
Qt::DBus
@@ -52,6 +56,10 @@ qt_add_executable(pong
ping-common.h
pong.cpp pong.h
)
+set_target_properties(pong PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(pong PUBLIC
# Remove: gui
Qt::DBus
diff --git a/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt
index 001a82e720f..86b3fb8e524 100644
--- a/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(car
car.cpp car.h
main.cpp
)
+set_target_properties(car PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(car PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
index 533881d1402..e20f657a9a2 100644
--- a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
@@ -34,6 +34,10 @@ qt_add_executable(car
main.cpp
${car_SRCS} # special case
)
+set_target_properties(car PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(car PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt
index f4f24430794..f1916c93f21 100644
--- a/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(controller
controller.cpp controller.h controller.ui
main.cpp
)
+set_target_properties(controller PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(controller PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
index d27d428b079..f2433a43a2e 100644
--- a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
@@ -32,6 +32,10 @@ qt_add_executable(controller
main.cpp
${controller_SRCS} # special case
)
+set_target_properties(controller PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(controller PUBLIC
Qt::Core
Qt::DBus
diff --git a/examples/embedded/digiflip/CMakeLists.txt b/examples/embedded/digiflip/CMakeLists.txt
index d04ea3e37e8..2f7de56f25a 100644
--- a/examples/embedded/digiflip/CMakeLists.txt
+++ b/examples/embedded/digiflip/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(digiflip
digiflip.cpp
)
+set_target_properties(digiflip PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(digiflip PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/embedded/flickable/CMakeLists.txt b/examples/embedded/flickable/CMakeLists.txt
index d77a31b55eb..002ccf1198a 100644
--- a/examples/embedded/flickable/CMakeLists.txt
+++ b/examples/embedded/flickable/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(flickable
flickable.cpp flickable.h
main.cpp
)
+set_target_properties(flickable PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flickable PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/embedded/flightinfo/CMakeLists.txt b/examples/embedded/flightinfo/CMakeLists.txt
index bd6539a2f44..2021f5099f0 100644
--- a/examples/embedded/flightinfo/CMakeLists.txt
+++ b/examples/embedded/flightinfo/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(flightinfo
flightinfo.cpp
form.ui
)
+set_target_properties(flightinfo PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flightinfo PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/embedded/lightmaps/CMakeLists.txt b/examples/embedded/lightmaps/CMakeLists.txt
index bdb9ec4a339..a4546b8a390 100644
--- a/examples/embedded/lightmaps/CMakeLists.txt
+++ b/examples/embedded/lightmaps/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(lightmaps
mapzoom.cpp mapzoom.h
slippymap.cpp slippymap.h
)
+set_target_properties(lightmaps PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(lightmaps PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/embedded/raycasting/CMakeLists.txt b/examples/embedded/raycasting/CMakeLists.txt
index 69de5d29ff3..f39466c89c2 100644
--- a/examples/embedded/raycasting/CMakeLists.txt
+++ b/examples/embedded/raycasting/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(raycasting
raycasting.cpp
)
+set_target_properties(raycasting PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(raycasting PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/embedded/styleexample/CMakeLists.txt b/examples/embedded/styleexample/CMakeLists.txt
index 659c0a5f655..a224f504ca8 100644
--- a/examples/embedded/styleexample/CMakeLists.txt
+++ b/examples/embedded/styleexample/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(styleexample
main.cpp
stylewidget.cpp stylewidget.h stylewidget.ui
)
+set_target_properties(styleexample PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(styleexample PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/gui/analogclock/.prev_CMakeLists.txt b/examples/gui/analogclock/.prev_CMakeLists.txt
index 1a0a5fdf974..90c6091d689 100644
--- a/examples/gui/analogclock/.prev_CMakeLists.txt
+++ b/examples/gui/analogclock/.prev_CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(analogclock
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
+set_target_properties(analogclock PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(analogclock PUBLIC
../rasterwindow
)
diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt
index 191facbc789..21a5fc239e8 100644
--- a/examples/gui/analogclock/CMakeLists.txt
+++ b/examples/gui/analogclock/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(gui_analogclock # special case: renamed target
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
+set_target_properties(gui_analogclock PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(gui_analogclock PUBLIC # special case
../rasterwindow
)
diff --git a/examples/gui/rasterwindow/.prev_CMakeLists.txt b/examples/gui/rasterwindow/.prev_CMakeLists.txt
index 53269112f6a..dddb5586dbf 100644
--- a/examples/gui/rasterwindow/.prev_CMakeLists.txt
+++ b/examples/gui/rasterwindow/.prev_CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(rasterwindow
main.cpp
rasterwindow.cpp rasterwindow.h
)
+set_target_properties(rasterwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(rasterwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt
index 26884471d1b..845b52fc3e7 100644
--- a/examples/gui/rasterwindow/CMakeLists.txt
+++ b/examples/gui/rasterwindow/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(rasterwindow
main.cpp
rasterwindow.cpp rasterwindow.h
)
+set_target_properties(rasterwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(rasterwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt
index 9aed449b3bd..44a4a68e39f 100644
--- a/examples/network/blockingfortuneclient/CMakeLists.txt
+++ b/examples/network/blockingfortuneclient/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(blockingfortuneclient
fortunethread.cpp fortunethread.h
main.cpp
)
+set_target_properties(blockingfortuneclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(blockingfortuneclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt
index d24bcdf3046..ecc322d86a1 100644
--- a/examples/network/broadcastreceiver/CMakeLists.txt
+++ b/examples/network/broadcastreceiver/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(broadcastreceiver
main.cpp
receiver.cpp receiver.h
)
+set_target_properties(broadcastreceiver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(broadcastreceiver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt
index a7e243ad583..4c371d6494d 100644
--- a/examples/network/broadcastsender/CMakeLists.txt
+++ b/examples/network/broadcastsender/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(broadcastsender
main.cpp
sender.cpp sender.h
)
+set_target_properties(broadcastsender PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(broadcastsender PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt
index 5426aca565b..5e68adb2241 100644
--- a/examples/network/dnslookup/CMakeLists.txt
+++ b/examples/network/dnslookup/CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Network)
qt_add_executable(dnslookup
dnslookup.cpp dnslookup.h
)
+set_target_properties(dnslookup PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(dnslookup PUBLIC
Qt::Core
Qt::Network
diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt
index 4c05703be5d..36bdfdc5fdf 100644
--- a/examples/network/download/CMakeLists.txt
+++ b/examples/network/download/CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Network)
qt_add_executable(download
main.cpp
)
+set_target_properties(download PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(download PUBLIC
Qt::Core
Qt::Network
diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt
index d5e065dd8d7..a3698a016ff 100644
--- a/examples/network/downloadmanager/CMakeLists.txt
+++ b/examples/network/downloadmanager/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(downloadmanager
main.cpp
textprogressbar.cpp textprogressbar.h
)
+set_target_properties(downloadmanager PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(downloadmanager PUBLIC
Qt::Core
Qt::Network
diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt
index 27a41dacc9e..4c80076d0d1 100644
--- a/examples/network/fortuneclient/CMakeLists.txt
+++ b/examples/network/fortuneclient/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fortuneclient
client.cpp client.h
main.cpp
)
+set_target_properties(fortuneclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fortuneclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt
index 3147d9aeabe..f1a668cf881 100644
--- a/examples/network/fortuneserver/CMakeLists.txt
+++ b/examples/network/fortuneserver/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fortuneserver
main.cpp
server.cpp server.h
)
+set_target_properties(fortuneserver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fortuneserver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt
index 2f8d244c7b1..ade5b85f2d4 100644
--- a/examples/network/googlesuggest/CMakeLists.txt
+++ b/examples/network/googlesuggest/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(googlesuggest
main.cpp
searchbox.cpp searchbox.h
)
+set_target_properties(googlesuggest PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(googlesuggest PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt
index 77bcbe675b5..b967881c6a2 100644
--- a/examples/network/http/CMakeLists.txt
+++ b/examples/network/http/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(http
httpwindow.cpp httpwindow.h
main.cpp
)
+set_target_properties(http PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(http PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt
index d41fd0e83bb..eb0c13e2300 100644
--- a/examples/network/loopback/CMakeLists.txt
+++ b/examples/network/loopback/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(loopback
dialog.cpp dialog.h
main.cpp
)
+set_target_properties(loopback PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(loopback PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt
index 6ae83f8ab2f..c3f7837f942 100644
--- a/examples/network/multicastreceiver/CMakeLists.txt
+++ b/examples/network/multicastreceiver/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(multicastreceiver
main.cpp
receiver.cpp receiver.h
)
+set_target_properties(multicastreceiver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multicastreceiver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt
index 572d48f664e..2ff038e2696 100644
--- a/examples/network/multicastsender/CMakeLists.txt
+++ b/examples/network/multicastsender/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(multicastsender
main.cpp
sender.cpp sender.h
)
+set_target_properties(multicastsender PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multicastsender PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt
index 258e244856d..f060c06b399 100644
--- a/examples/network/multistreamclient/CMakeLists.txt
+++ b/examples/network/multistreamclient/CMakeLists.txt
@@ -28,6 +28,10 @@ qt_add_executable(multistreamclient
movieconsumer.cpp movieconsumer.h
timeconsumer.cpp timeconsumer.h
)
+set_target_properties(multistreamclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multistreamclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt
index c640750276d..8273e2b0290 100644
--- a/examples/network/multistreamserver/CMakeLists.txt
+++ b/examples/network/multistreamserver/CMakeLists.txt
@@ -28,6 +28,10 @@ qt_add_executable(multistreamserver
server.cpp server.h
timeprovider.cpp timeprovider.h
)
+set_target_properties(multistreamserver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multistreamserver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt
index 0b317278cdb..923ddec1852 100644
--- a/examples/network/network-chat/CMakeLists.txt
+++ b/examples/network/network-chat/CMakeLists.txt
@@ -28,6 +28,10 @@ qt_add_executable(network-chat
peermanager.cpp peermanager.h
server.cpp server.h
)
+set_target_properties(network-chat PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(network-chat PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt
index 8b2e3888c25..3af7260c473 100644
--- a/examples/network/securesocketclient/CMakeLists.txt
+++ b/examples/network/securesocketclient/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(securesocketclient
sslclient.cpp sslclient.h sslclient.ui
sslerrors.ui
)
+set_target_properties(securesocketclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(securesocketclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt
index 9168798e20f..cd88d630df3 100644
--- a/examples/network/secureudpclient/CMakeLists.txt
+++ b/examples/network/secureudpclient/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(secureudpclient
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
)
+set_target_properties(secureudpclient PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(secureudpclient PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt
index 3a21910c992..c93f8d01396 100644
--- a/examples/network/secureudpserver/CMakeLists.txt
+++ b/examples/network/secureudpserver/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(secureudpserver
nicselector.cpp nicselector.h nicselector.ui
server.cpp server.h
)
+set_target_properties(secureudpserver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(secureudpserver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt
index 45940baad81..12cb2f66103 100644
--- a/examples/network/threadedfortuneserver/CMakeLists.txt
+++ b/examples/network/threadedfortuneserver/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(threadedfortuneserver
fortunethread.cpp fortunethread.h
main.cpp
)
+set_target_properties(threadedfortuneserver PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(threadedfortuneserver PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/torrent/.prev_CMakeLists.txt b/examples/network/torrent/.prev_CMakeLists.txt
index 9411bdc1d46..bc3bf6a4654 100644
--- a/examples/network/torrent/.prev_CMakeLists.txt
+++ b/examples/network/torrent/.prev_CMakeLists.txt
@@ -35,6 +35,10 @@ qt_add_executable(torrent
torrentserver.cpp torrentserver.h
trackerclient.cpp trackerclient.h
)
+set_target_properties(torrent PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(torrent PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt
index 0766d208b73..7eea3d02bc1 100644
--- a/examples/network/torrent/CMakeLists.txt
+++ b/examples/network/torrent/CMakeLists.txt
@@ -35,6 +35,10 @@ qt_add_executable(torrent
torrentserver.cpp torrentserver.h
trackerclient.cpp trackerclient.h
)
+set_target_properties(torrent PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(torrent PUBLIC forms) # special case
target_link_libraries(torrent PUBLIC
Qt::Core
diff --git a/examples/opengl/2dpainting/CMakeLists.txt b/examples/opengl/2dpainting/CMakeLists.txt
index 675a2540704..5978f6a2832 100644
--- a/examples/opengl/2dpainting/CMakeLists.txt
+++ b/examples/opengl/2dpainting/CMakeLists.txt
@@ -28,6 +28,10 @@ qt_add_executable(2dpainting
widget.cpp widget.h
window.cpp window.h
)
+set_target_properties(2dpainting PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(2dpainting PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/computegles31/CMakeLists.txt b/examples/opengl/computegles31/CMakeLists.txt
index 1e9ac0ce1c9..d86579d9618 100644
--- a/examples/opengl/computegles31/CMakeLists.txt
+++ b/examples/opengl/computegles31/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(computegles31
glwindow.cpp glwindow.h
main.cpp
)
+set_target_properties(computegles31 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(computegles31 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/contextinfo/CMakeLists.txt b/examples/opengl/contextinfo/CMakeLists.txt
index 4e444ee60cc..81daeedc5f2 100644
--- a/examples/opengl/contextinfo/CMakeLists.txt
+++ b/examples/opengl/contextinfo/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(contextinfo
renderwindow.cpp renderwindow.h
widget.cpp widget.h
)
+set_target_properties(contextinfo PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(contextinfo PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/cube/CMakeLists.txt b/examples/opengl/cube/CMakeLists.txt
index cd247f01cea..da7db67ef9b 100644
--- a/examples/opengl/cube/CMakeLists.txt
+++ b/examples/opengl/cube/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(cube
main.cpp
mainwidget.cpp mainwidget.h
)
+set_target_properties(cube PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(cube PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/hellogl2/CMakeLists.txt b/examples/opengl/hellogl2/CMakeLists.txt
index c5bbb54fc67..dcf66be4b96 100644
--- a/examples/opengl/hellogl2/CMakeLists.txt
+++ b/examples/opengl/hellogl2/CMakeLists.txt
@@ -28,6 +28,10 @@ qt_add_executable(hellogl2
mainwindow.cpp mainwindow.h
window.cpp window.h
)
+set_target_properties(hellogl2 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellogl2 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/hellogles3/CMakeLists.txt b/examples/opengl/hellogles3/CMakeLists.txt
index a7c36e6419b..b26dfe059f0 100644
--- a/examples/opengl/hellogles3/CMakeLists.txt
+++ b/examples/opengl/hellogles3/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(hellogles3
glwindow.cpp glwindow.h
main.cpp
)
+set_target_properties(hellogles3 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellogles3 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/hellowindow/CMakeLists.txt b/examples/opengl/hellowindow/CMakeLists.txt
index 293b46ec57d..cd77a5b7658 100644
--- a/examples/opengl/hellowindow/CMakeLists.txt
+++ b/examples/opengl/hellowindow/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(hellowindow
hellowindow.cpp hellowindow.h
main.cpp
)
+set_target_properties(hellowindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellowindow PUBLIC
Qt::Core
Qt::CorePrivate
diff --git a/examples/opengl/openglwindow/CMakeLists.txt b/examples/opengl/openglwindow/CMakeLists.txt
index 816aa87a4dc..d0a825aafc3 100644
--- a/examples/opengl/openglwindow/CMakeLists.txt
+++ b/examples/opengl/openglwindow/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(openglwindow
main.cpp
openglwindow.cpp openglwindow.h
)
+set_target_properties(openglwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(openglwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
diff --git a/examples/opengl/paintedwindow/CMakeLists.txt b/examples/opengl/paintedwindow/CMakeLists.txt
index 2752ed40c08..496cc52b6f2 100644
--- a/examples/opengl/paintedwindow/CMakeLists.txt
+++ b/examples/opengl/paintedwindow/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(paintedwindow
main.cpp
paintedwindow.cpp paintedwindow.h
)
+set_target_properties(paintedwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(paintedwindow PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/qopenglwidget/CMakeLists.txt b/examples/opengl/qopenglwidget/CMakeLists.txt
index 055ea904f58..c5ca16a33bc 100644
--- a/examples/opengl/qopenglwidget/CMakeLists.txt
+++ b/examples/opengl/qopenglwidget/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(qopenglwidget
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(qopenglwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qopenglwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/qopenglwindow/CMakeLists.txt b/examples/opengl/qopenglwindow/CMakeLists.txt
index 969b9d7e0c1..93909b516e7 100644
--- a/examples/opengl/qopenglwindow/CMakeLists.txt
+++ b/examples/opengl/qopenglwindow/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(qopenglwindow
background_renderer.cpp background_renderer.h
main.cpp
)
+set_target_properties(qopenglwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(qopenglwindow PUBLIC
.
)
diff --git a/examples/opengl/textures/CMakeLists.txt b/examples/opengl/textures/CMakeLists.txt
index 502ac9cef1a..64ae075ce06 100644
--- a/examples/opengl/textures/CMakeLists.txt
+++ b/examples/opengl/textures/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(textures
main.cpp
window.cpp window.h
)
+set_target_properties(textures PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(textures PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/opengl/threadedqopenglwidget/CMakeLists.txt b/examples/opengl/threadedqopenglwidget/CMakeLists.txt
index 60f121abf5d..dc5bdb85c13 100644
--- a/examples/opengl/threadedqopenglwidget/CMakeLists.txt
+++ b/examples/opengl/threadedqopenglwidget/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(threadedqopenglwidget
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(threadedqopenglwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(threadedqopenglwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qpa/qrasterwindow/CMakeLists.txt b/examples/qpa/qrasterwindow/CMakeLists.txt
index 0352c464f73..94af7b6de5d 100644
--- a/examples/qpa/qrasterwindow/CMakeLists.txt
+++ b/examples/qpa/qrasterwindow/CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Gui)
qt_add_executable(qrasterwindow
main.cpp
)
+set_target_properties(qrasterwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qrasterwindow PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt
index 5013769f543..e644be537c6 100644
--- a/examples/qpa/windows/CMakeLists.txt
+++ b/examples/qpa/windows/CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(windows
main.cpp
window.cpp window.h
)
+set_target_properties(windows PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(windows PUBLIC
Qt::Core
Qt::CorePrivate
diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt
index 8956f8a2a15..b1065e877bb 100644
--- a/examples/qtconcurrent/imagescaling/CMakeLists.txt
+++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(imagescaling
imagescaling.cpp imagescaling.h
main.cpp
)
+set_target_properties(imagescaling PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imagescaling PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtconcurrent/map/.prev_CMakeLists.txt b/examples/qtconcurrent/map/.prev_CMakeLists.txt
index 5ab5b093a4a..0e3215c2259 100644
--- a/examples/qtconcurrent/map/.prev_CMakeLists.txt
+++ b/examples/qtconcurrent/map/.prev_CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Concurrent)
qt_add_executable(mapdemo
main.cpp
)
+set_target_properties(mapdemo PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(mapdemo PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt
index 3a977eeaafe..08589f1b3f5 100644
--- a/examples/qtconcurrent/map/CMakeLists.txt
+++ b/examples/qtconcurrent/map/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Concurrent)
qt_add_executable(mapdemo
main.cpp
)
+set_target_properties(mapdemo PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(mapdemo PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt
index d91ba64b913..00dd8215ef2 100644
--- a/examples/qtconcurrent/progressdialog/CMakeLists.txt
+++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(progressdialog
main.cpp
)
+set_target_properties(progressdialog PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(progressdialog PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt
index ffd5b904c92..d1f03216485 100644
--- a/examples/qtconcurrent/runfunction/CMakeLists.txt
+++ b/examples/qtconcurrent/runfunction/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(runfunction
main.cpp
)
+set_target_properties(runfunction PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(runfunction PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt
index b3636fca761..10e09bf0f69 100644
--- a/examples/qtconcurrent/wordcount/CMakeLists.txt
+++ b/examples/qtconcurrent/wordcount/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(wordcount
main.cpp
)
+set_target_properties(wordcount PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(wordcount PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/qtestlib/tutorial1/CMakeLists.txt b/examples/qtestlib/tutorial1/CMakeLists.txt
index c37bf3a46e6..36664d3b99b 100644
--- a/examples/qtestlib/tutorial1/CMakeLists.txt
+++ b/examples/qtestlib/tutorial1/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial1
testqstring.cpp
)
+set_target_properties(tutorial1 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tutorial1 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qtestlib/tutorial2/CMakeLists.txt b/examples/qtestlib/tutorial2/CMakeLists.txt
index 104578bfb9f..781a910c38a 100644
--- a/examples/qtestlib/tutorial2/CMakeLists.txt
+++ b/examples/qtestlib/tutorial2/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial2
testqstring.cpp
)
+set_target_properties(tutorial2 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tutorial2 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qtestlib/tutorial3/CMakeLists.txt b/examples/qtestlib/tutorial3/CMakeLists.txt
index 90c79818d07..0ebdb5a81c9 100644
--- a/examples/qtestlib/tutorial3/CMakeLists.txt
+++ b/examples/qtestlib/tutorial3/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial3
testgui.cpp
)
+set_target_properties(tutorial3 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tutorial3 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qtestlib/tutorial4/CMakeLists.txt b/examples/qtestlib/tutorial4/CMakeLists.txt
index 9a3cc59876e..7238f31fabc 100644
--- a/examples/qtestlib/tutorial4/CMakeLists.txt
+++ b/examples/qtestlib/tutorial4/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial4
testgui.cpp
)
+set_target_properties(tutorial4 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tutorial4 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qtestlib/tutorial5/CMakeLists.txt b/examples/qtestlib/tutorial5/CMakeLists.txt
index d967eb23826..1cf7085085c 100644
--- a/examples/qtestlib/tutorial5/CMakeLists.txt
+++ b/examples/qtestlib/tutorial5/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial5
benchmarking.cpp
)
+set_target_properties(tutorial5 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tutorial5 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt
index 3787ee758bb..7595f3fd826 100644
--- a/examples/sql/books/CMakeLists.txt
+++ b/examples/sql/books/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(books
initdb.h
main.cpp
)
+set_target_properties(books PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(books PUBLIC
.
)
diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt
index 4806ef21969..7c5af62005a 100644
--- a/examples/sql/cachedtable/CMakeLists.txt
+++ b/examples/sql/cachedtable/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(cachedtable
main.cpp
tableeditor.cpp tableeditor.h
)
+set_target_properties(cachedtable PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(cachedtable PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt
index b27e6c4052b..ace085e6ac5 100644
--- a/examples/sql/drilldown/CMakeLists.txt
+++ b/examples/sql/drilldown/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(drilldown
main.cpp
view.cpp view.h
)
+set_target_properties(drilldown PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(drilldown PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt
index 8a9a6c4d7d1..1a66c81b9c4 100644
--- a/examples/sql/masterdetail/CMakeLists.txt
+++ b/examples/sql/masterdetail/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(masterdetail
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(masterdetail PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(masterdetail PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt
index 877ccabf60b..8320ac917d5 100644
--- a/examples/sql/querymodel/CMakeLists.txt
+++ b/examples/sql/querymodel/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(querymodel
editablesqlmodel.cpp editablesqlmodel.h
main.cpp
)
+set_target_properties(querymodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(querymodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt
index a0a7ca4d039..63557fba883 100644
--- a/examples/sql/relationaltablemodel/CMakeLists.txt
+++ b/examples/sql/relationaltablemodel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(relationaltablemodel
../connection.h
relationaltablemodel.cpp
)
+set_target_properties(relationaltablemodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(relationaltablemodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt
index f027e6fdbf4..260288b9c06 100644
--- a/examples/sql/sqlbrowser/CMakeLists.txt
+++ b/examples/sql/sqlbrowser/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(sqlbrowser
main.cpp
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
)
+set_target_properties(sqlbrowser PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sqlbrowser PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt
index 95d3e4c7e75..24b563a2a3c 100644
--- a/examples/sql/sqlwidgetmapper/CMakeLists.txt
+++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(sqlwidgetmapper
main.cpp
window.cpp window.h
)
+set_target_properties(sqlwidgetmapper PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sqlwidgetmapper PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt
index 41365924937..7dd042adb7b 100644
--- a/examples/sql/tablemodel/CMakeLists.txt
+++ b/examples/sql/tablemodel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(tablemodel
../connection.h
tablemodel.cpp
)
+set_target_properties(tablemodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tablemodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/vulkan/hellovulkancubes/CMakeLists.txt b/examples/vulkan/hellovulkancubes/CMakeLists.txt
index 01a1e325579..4248375ba04 100644
--- a/examples/vulkan/hellovulkancubes/CMakeLists.txt
+++ b/examples/vulkan/hellovulkancubes/CMakeLists.txt
@@ -29,6 +29,10 @@ qt_add_executable(hellovulkancubes
shader.cpp shader.h
vulkanwindow.cpp vulkanwindow.h
)
+set_target_properties(hellovulkancubes PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellovulkancubes PUBLIC
Qt::Concurrent
Qt::Core
diff --git a/examples/vulkan/hellovulkantexture/CMakeLists.txt b/examples/vulkan/hellovulkantexture/CMakeLists.txt
index 25cf1ae484f..d805f3cb45f 100644
--- a/examples/vulkan/hellovulkantexture/CMakeLists.txt
+++ b/examples/vulkan/hellovulkantexture/CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(hellovulkantexture
hellovulkantexture.cpp hellovulkantexture.h
main.cpp
)
+set_target_properties(hellovulkantexture PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellovulkantexture PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/vulkan/hellovulkantriangle/CMakeLists.txt b/examples/vulkan/hellovulkantriangle/CMakeLists.txt
index c6db88838f2..3993e931ef8 100644
--- a/examples/vulkan/hellovulkantriangle/CMakeLists.txt
+++ b/examples/vulkan/hellovulkantriangle/CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(hellovulkantriangle
../shared/trianglerenderer.cpp ../shared/trianglerenderer.h
main.cpp
)
+set_target_properties(hellovulkantriangle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellovulkantriangle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/vulkan/hellovulkanwidget/CMakeLists.txt b/examples/vulkan/hellovulkanwidget/CMakeLists.txt
index 72ac0849004..cecb3a3e527 100644
--- a/examples/vulkan/hellovulkanwidget/CMakeLists.txt
+++ b/examples/vulkan/hellovulkanwidget/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(hellovulkanwidget
hellovulkanwidget.cpp hellovulkanwidget.h
main.cpp
)
+set_target_properties(hellovulkanwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellovulkanwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/vulkan/hellovulkanwindow/CMakeLists.txt b/examples/vulkan/hellovulkanwindow/CMakeLists.txt
index e5f5fea35ab..5e9d789ddf2 100644
--- a/examples/vulkan/hellovulkanwindow/CMakeLists.txt
+++ b/examples/vulkan/hellovulkanwindow/CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(hellovulkanwindow
hellovulkanwindow.cpp hellovulkanwindow.h
main.cpp
)
+set_target_properties(hellovulkanwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hellovulkanwindow PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/animation/easing/CMakeLists.txt b/examples/widgets/animation/easing/CMakeLists.txt
index 107cae5a096..7e36ed78c4f 100644
--- a/examples/widgets/animation/easing/CMakeLists.txt
+++ b/examples/widgets/animation/easing/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(easing
main.cpp
window.cpp window.h
)
+set_target_properties(easing PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(easing PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/desktop/screenshot/CMakeLists.txt b/examples/widgets/desktop/screenshot/CMakeLists.txt
index 979dee6ca79..2dc1b9909e1 100644
--- a/examples/widgets/desktop/screenshot/CMakeLists.txt
+++ b/examples/widgets/desktop/screenshot/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(screenshot
main.cpp
screenshot.cpp screenshot.h
)
+set_target_properties(screenshot PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(screenshot PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/desktop/systray/CMakeLists.txt b/examples/widgets/desktop/systray/CMakeLists.txt
index 7c813a86675..e1d1ca526b8 100644
--- a/examples/widgets/desktop/systray/CMakeLists.txt
+++ b/examples/widgets/desktop/systray/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(systray
main.cpp
window.cpp window.h
)
+set_target_properties(systray PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(systray PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/classwizard/CMakeLists.txt b/examples/widgets/dialogs/classwizard/CMakeLists.txt
index ebbc8d06527..5134db62bee 100644
--- a/examples/widgets/dialogs/classwizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/classwizard/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(classwizard
classwizard.cpp classwizard.h
main.cpp
)
+set_target_properties(classwizard PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(classwizard PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/extension/CMakeLists.txt b/examples/widgets/dialogs/extension/CMakeLists.txt
index a1f42276daf..37d75d2cc18 100644
--- a/examples/widgets/dialogs/extension/CMakeLists.txt
+++ b/examples/widgets/dialogs/extension/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(extension
finddialog.cpp finddialog.h
main.cpp
)
+set_target_properties(extension PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(extension PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/findfiles/CMakeLists.txt b/examples/widgets/dialogs/findfiles/CMakeLists.txt
index 870a9d84093..1d60d743f2f 100644
--- a/examples/widgets/dialogs/findfiles/CMakeLists.txt
+++ b/examples/widgets/dialogs/findfiles/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(findfiles
main.cpp
window.cpp window.h
)
+set_target_properties(findfiles PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(findfiles PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/licensewizard/CMakeLists.txt b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
index b26c8aafd7c..df0b205cabe 100644
--- a/examples/widgets/dialogs/licensewizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(licensewizard
licensewizard.cpp licensewizard.h
main.cpp
)
+set_target_properties(licensewizard PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(licensewizard PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
index 74fca2a343a..b42e3a81c76 100644
--- a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
+++ b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(standarddialogs
dialog.cpp dialog.h
main.cpp
)
+set_target_properties(standarddialogs PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(standarddialogs PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/tabdialog/CMakeLists.txt b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
index a93563ef9c3..8e8ad4213a9 100644
--- a/examples/widgets/dialogs/tabdialog/CMakeLists.txt
+++ b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(tabdialog
main.cpp
tabdialog.cpp tabdialog.h
)
+set_target_properties(tabdialog PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tabdialog PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
index 684981d16eb..4c67d8cdb6d 100644
--- a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(trivialwizard
trivialwizard.cpp
)
+set_target_properties(trivialwizard PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(trivialwizard PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
index 938365315c4..894f8ba520f 100644
--- a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
+++ b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(draggableicons
dragwidget.cpp dragwidget.h
main.cpp
)
+set_target_properties(draggableicons PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(draggableicons PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
index 8ce6a2444aa..d2da6acddb8 100644
--- a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
+++ b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(draggabletext
dragwidget.cpp dragwidget.h
main.cpp
)
+set_target_properties(draggabletext PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(draggabletext PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/dropsite/CMakeLists.txt b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
index a139add5b23..aac6d005b77 100644
--- a/examples/widgets/draganddrop/dropsite/CMakeLists.txt
+++ b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(dropsite
dropsitewindow.cpp dropsitewindow.h
main.cpp
)
+set_target_properties(dropsite PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dropsite PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
index bf0969b4b45..3f8b9108aef 100644
--- a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
+++ b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fridgemagnets
dragwidget.cpp dragwidget.h
main.cpp
)
+set_target_properties(fridgemagnets PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fridgemagnets PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt b/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt
index cad4c026025..bcc77086622 100644
--- a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt
+++ b/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(puzzle
pieceslist.cpp pieceslist.h
puzzlewidget.cpp puzzlewidget.h
)
+set_target_properties(puzzle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(puzzle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/draganddrop/puzzle/CMakeLists.txt b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
index a8f319b6bd2..b7569fb0d2c 100644
--- a/examples/widgets/draganddrop/puzzle/CMakeLists.txt
+++ b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(draganddrop_puzzle # special case: renamed puzzle
pieceslist.cpp pieceslist.h
puzzlewidget.cpp puzzlewidget.h
)
+set_target_properties(draganddrop_puzzle PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(draganddrop_puzzle PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/widgets/effects/blurpicker/CMakeLists.txt b/examples/widgets/effects/blurpicker/CMakeLists.txt
index 1a684b0e7d0..f24fa685c0e 100644
--- a/examples/widgets/effects/blurpicker/CMakeLists.txt
+++ b/examples/widgets/effects/blurpicker/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(blurpicker
blurpicker.cpp blurpicker.h
main.cpp
)
+set_target_properties(blurpicker PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(blurpicker PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/effects/fademessage/CMakeLists.txt b/examples/widgets/effects/fademessage/CMakeLists.txt
index 1b1b2ebb103..2de3b9b1316 100644
--- a/examples/widgets/effects/fademessage/CMakeLists.txt
+++ b/examples/widgets/effects/fademessage/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(fademessage
fademessage.cpp fademessage.h
main.cpp
)
+set_target_properties(fademessage PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fademessage PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/gallery/CMakeLists.txt b/examples/widgets/gallery/CMakeLists.txt
index 156e61a18b4..f3afe22109d 100644
--- a/examples/widgets/gallery/CMakeLists.txt
+++ b/examples/widgets/gallery/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(gallery
main.cpp
widgetgallery.cpp widgetgallery.h
)
+set_target_properties(gallery PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(gallery PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/gestures/imagegestures/CMakeLists.txt b/examples/widgets/gestures/imagegestures/CMakeLists.txt
index eeb4bc511c4..994fba8c04f 100644
--- a/examples/widgets/gestures/imagegestures/CMakeLists.txt
+++ b/examples/widgets/gestures/imagegestures/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(imagegestures
main.cpp
mainwidget.cpp mainwidget.h
)
+set_target_properties(imagegestures PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imagegestures PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
index a6d5aaf9d7e..9d500bace45 100644
--- a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(anchorlayout
main.cpp
)
+set_target_properties(anchorlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(anchorlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
index 3f96953abaa..a699a75a874 100644
--- a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(basicgraphicslayouts
main.cpp
window.cpp window.h
)
+set_target_properties(basicgraphicslayouts PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(basicgraphicslayouts PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt b/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt
index d03c78fc70f..1140aeb9696 100644
--- a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt
+++ b/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(chip
mainwindow.cpp mainwindow.h
view.cpp view.h
)
+set_target_properties(chip PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chip PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt
index 3a892dca269..cb3e95a43c3 100644
--- a/examples/widgets/graphicsview/chip/CMakeLists.txt
+++ b/examples/widgets/graphicsview/chip/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(chip
mainwindow.cpp mainwindow.h
view.cpp view.h
)
+set_target_properties(chip PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chip PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
index b50e941c358..6b13244042e 100644
--- a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
+++ b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(collidingmice
main.cpp
mouse.cpp mouse.h
)
+set_target_properties(collidingmice PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(collidingmice PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
index 4923c76ab72..89bcc6f4cb0 100644
--- a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
+++ b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(diagramscene
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(diagramscene PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(diagramscene PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
index 0335ad4f2d4..9cf79ba53e1 100644
--- a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
+++ b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(dragdroprobot
main.cpp
robot.cpp robot.h
)
+set_target_properties(dragdroprobot PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dragdroprobot PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
index efb4d986bd5..c25df365fb0 100644
--- a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
+++ b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(elasticnodes
main.cpp
node.cpp node.h
)
+set_target_properties(elasticnodes PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(elasticnodes PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
index 316da4cd907..5f69077802b 100644
--- a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
+++ b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(embeddeddialogs
embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui
main.cpp
)
+set_target_properties(embeddeddialogs PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(embeddeddialogs PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt
index 82b8bee4c7d..4208ba303ea 100644
--- a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt
+++ b/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(flowlayout
main.cpp
window.cpp window.h
)
+set_target_properties(flowlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flowlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
index 368342f09cb..4062c1d902b 100644
--- a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(graphicsview_flowlayout # special case: renamed flowlayout
main.cpp
window.cpp window.h
)
+set_target_properties(graphicsview_flowlayout PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(graphicsview_flowlayout PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
index 73e9d2be8e4..8403fb0a0a2 100644
--- a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(simpleanchorlayout
main.cpp
)
+set_target_properties(simpleanchorlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(simpleanchorlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
index e39bb95b8c2..43bd29452e2 100644
--- a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(weatheranchorlayout
main.cpp
)
+set_target_properties(weatheranchorlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(weatheranchorlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/addressbook/CMakeLists.txt b/examples/widgets/itemviews/addressbook/CMakeLists.txt
index 54bc195588f..0383a1edf8f 100644
--- a/examples/widgets/itemviews/addressbook/CMakeLists.txt
+++ b/examples/widgets/itemviews/addressbook/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(addressbook
newaddresstab.cpp newaddresstab.h
tablemodel.cpp tablemodel.h
)
+set_target_properties(addressbook PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(addressbook PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
index 55ce6024eb6..cd70de69072 100644
--- a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(basicsortfiltermodel
main.cpp
window.cpp window.h
)
+set_target_properties(basicsortfiltermodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(basicsortfiltermodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/chart/CMakeLists.txt b/examples/widgets/itemviews/chart/CMakeLists.txt
index 533b6d28135..c0a9d660999 100644
--- a/examples/widgets/itemviews/chart/CMakeLists.txt
+++ b/examples/widgets/itemviews/chart/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(chart
mainwindow.cpp mainwindow.h
pieview.cpp pieview.h
)
+set_target_properties(chart PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chart PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
index f974f880648..478c61dec78 100644
--- a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
+++ b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(coloreditorfactory
main.cpp
window.cpp window.h
)
+set_target_properties(coloreditorfactory PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(coloreditorfactory PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
index eab91ce57a1..b239e434e25 100644
--- a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
+++ b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(combowidgetmapper
main.cpp
window.cpp window.h
)
+set_target_properties(combowidgetmapper PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(combowidgetmapper PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
index 9ad909f57c4..9b20b76a9ab 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(customsortfiltermodel
mysortfilterproxymodel.cpp mysortfilterproxymodel.h
window.cpp window.h
)
+set_target_properties(customsortfiltermodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customsortfiltermodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/dirview/CMakeLists.txt b/examples/widgets/itemviews/dirview/CMakeLists.txt
index b99242bc2e3..27ce1bc1442 100644
--- a/examples/widgets/itemviews/dirview/CMakeLists.txt
+++ b/examples/widgets/itemviews/dirview/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(dirview
main.cpp
)
+set_target_properties(dirview PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dirview PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
index bd0a487d8fe..6ef311d9604 100644
--- a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(editabletreemodel
treeitem.cpp treeitem.h
treemodel.cpp treemodel.h
)
+set_target_properties(editabletreemodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(editabletreemodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/fetchmore/CMakeLists.txt b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
index 2a0df1dcce9..35ddc52aab2 100644
--- a/examples/widgets/itemviews/fetchmore/CMakeLists.txt
+++ b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fetchmore
main.cpp
window.cpp window.h
)
+set_target_properties(fetchmore PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fetchmore PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/flattreeview/CMakeLists.txt b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
index 88d881c2237..893f19d4ba1 100644
--- a/examples/widgets/itemviews/flattreeview/CMakeLists.txt
+++ b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(flattreeview
main.cpp
)
+set_target_properties(flattreeview PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flattreeview PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
index e824e8c4b22..d27dc6e88bc 100644
--- a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
+++ b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(frozencolumn
freezetablewidget.cpp freezetablewidget.h
main.cpp
)
+set_target_properties(frozencolumn PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(frozencolumn PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/interview/CMakeLists.txt b/examples/widgets/itemviews/interview/CMakeLists.txt
index 5ed6aa998f1..7c4e6a4fe7b 100644
--- a/examples/widgets/itemviews/interview/CMakeLists.txt
+++ b/examples/widgets/itemviews/interview/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(interview
main.cpp
model.cpp model.h
)
+set_target_properties(interview PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(interview PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt b/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt
index 68b90cffda6..2beeba0939f 100644
--- a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt
+++ b/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(pixelator
mainwindow.cpp mainwindow.h
pixeldelegate.cpp pixeldelegate.h
)
+set_target_properties(pixelator PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(pixelator PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/pixelator/CMakeLists.txt b/examples/widgets/itemviews/pixelator/CMakeLists.txt
index 87d5b9258e5..10a89e43430 100644
--- a/examples/widgets/itemviews/pixelator/CMakeLists.txt
+++ b/examples/widgets/itemviews/pixelator/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(pixelator
mainwindow.cpp mainwindow.h
pixeldelegate.cpp pixeldelegate.h
)
+set_target_properties(pixelator PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(pixelator PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt b/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt
index 90190126e71..b80cb9c29b3 100644
--- a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt
+++ b/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(puzzle
piecesmodel.cpp piecesmodel.h
puzzlewidget.cpp puzzlewidget.h
)
+set_target_properties(puzzle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(puzzle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/puzzle/CMakeLists.txt b/examples/widgets/itemviews/puzzle/CMakeLists.txt
index 03ece14a1e1..bfc597f2da4 100644
--- a/examples/widgets/itemviews/puzzle/CMakeLists.txt
+++ b/examples/widgets/itemviews/puzzle/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(itemviews_puzzle # special case: renamed puzzle
piecesmodel.cpp piecesmodel.h
puzzlewidget.cpp puzzlewidget.h
)
+set_target_properties(itemviews_puzzle PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(itemviews_puzzle PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
index 25c7200a549..4381e6ad1ac 100644
--- a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(simpledommodel
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(simpledommodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(simpledommodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
index 73754e44740..0fd9ebc9df3 100644
--- a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(simpletreemodel
treeitem.cpp treeitem.h
treemodel.cpp treemodel.h
)
+set_target_properties(simpletreemodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(simpletreemodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
index c174fc65fae..aae13df1804 100644
--- a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
+++ b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(simplewidgetmapper
main.cpp
window.cpp window.h
)
+set_target_properties(simplewidgetmapper PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(simplewidgetmapper PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
index f682a5fa9a6..88bfd6b9c3e 100644
--- a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
+++ b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(spinboxdelegate
delegate.cpp delegate.h
main.cpp
)
+set_target_properties(spinboxdelegate PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(spinboxdelegate PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt
index 9f68485e2ca..e14931e62f0 100644
--- a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt
+++ b/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(spreadsheet
spreadsheetdelegate.cpp spreadsheetdelegate.h
spreadsheetitem.cpp spreadsheetitem.h
)
+set_target_properties(spreadsheet PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(spreadsheet PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
index 54de00fe286..a5a9a52574c 100644
--- a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
+++ b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(spreadsheet
spreadsheetdelegate.cpp spreadsheetdelegate.h
spreadsheetitem.cpp spreadsheetitem.h
)
+set_target_properties(spreadsheet PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(spreadsheet PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/stardelegate/CMakeLists.txt b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
index 1b7d12c25e4..947fdb96a7c 100644
--- a/examples/widgets/itemviews/stardelegate/CMakeLists.txt
+++ b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(stardelegate
stareditor.cpp stareditor.h
starrating.cpp starrating.h
)
+set_target_properties(stardelegate PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(stardelegate PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/itemviews/storageview/CMakeLists.txt b/examples/widgets/itemviews/storageview/CMakeLists.txt
index bada4f175cf..173aa7ca896 100644
--- a/examples/widgets/itemviews/storageview/CMakeLists.txt
+++ b/examples/widgets/itemviews/storageview/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(storageview
main.cpp
storagemodel.cpp storagemodel.h
)
+set_target_properties(storageview PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(storageview PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/layouts/basiclayouts/CMakeLists.txt b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
index b82cb711836..fdfc452e19e 100644
--- a/examples/widgets/layouts/basiclayouts/CMakeLists.txt
+++ b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(basiclayouts
dialog.cpp dialog.h
main.cpp
)
+set_target_properties(basiclayouts PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(basiclayouts PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/layouts/borderlayout/CMakeLists.txt b/examples/widgets/layouts/borderlayout/CMakeLists.txt
index 7459228ce78..7ea6a0496ee 100644
--- a/examples/widgets/layouts/borderlayout/CMakeLists.txt
+++ b/examples/widgets/layouts/borderlayout/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(borderlayout
main.cpp
window.cpp window.h
)
+set_target_properties(borderlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(borderlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
index 2c27f31b7c9..3bfa44da478 100644
--- a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
+++ b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(dynamiclayouts
dialog.cpp dialog.h
main.cpp
)
+set_target_properties(dynamiclayouts PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dynamiclayouts PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/layouts/flowlayout/CMakeLists.txt b/examples/widgets/layouts/flowlayout/CMakeLists.txt
index 3c1973886ac..deafab4d808 100644
--- a/examples/widgets/layouts/flowlayout/CMakeLists.txt
+++ b/examples/widgets/layouts/flowlayout/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(flowlayout
main.cpp
window.cpp window.h
)
+set_target_properties(flowlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flowlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/application/CMakeLists.txt b/examples/widgets/mainwindows/application/CMakeLists.txt
index 7142f3d8e52..53354d0460e 100644
--- a/examples/widgets/mainwindows/application/CMakeLists.txt
+++ b/examples/widgets/mainwindows/application/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(application
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(application PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(application PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt
index 8ba50928cf9..2affbef3b95 100644
--- a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt
+++ b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(dockwidgets
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(dockwidgets PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dockwidgets PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
index 4d92f80a483..308960e5472 100644
--- a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
+++ b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(dockwidgets
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(dockwidgets PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dockwidgets PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
index e692d48f4ab..88d1c7ddf79 100644
--- a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
+++ b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(mainwindow
mainwindow.cpp mainwindow.h
toolbar.cpp toolbar.h
)
+set_target_properties(mainwindow PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mainwindow PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/mdi/CMakeLists.txt b/examples/widgets/mainwindows/mdi/CMakeLists.txt
index 270f9f02aca..1c9aac9a339 100644
--- a/examples/widgets/mainwindows/mdi/CMakeLists.txt
+++ b/examples/widgets/mainwindows/mdi/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(mdi
mainwindow.cpp mainwindow.h
mdichild.cpp mdichild.h
)
+set_target_properties(mdi PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mdi PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/menus/CMakeLists.txt b/examples/widgets/mainwindows/menus/CMakeLists.txt
index 7a37a69ec6d..ba32b3086a7 100644
--- a/examples/widgets/mainwindows/menus/CMakeLists.txt
+++ b/examples/widgets/mainwindows/menus/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(menus
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(menus PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(menus PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/mainwindows/sdi/CMakeLists.txt b/examples/widgets/mainwindows/sdi/CMakeLists.txt
index 84622b4062d..111b127e382 100644
--- a/examples/widgets/mainwindows/sdi/CMakeLists.txt
+++ b/examples/widgets/mainwindows/sdi/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(sdi
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(sdi PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sdi PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/affine/.prev_CMakeLists.txt b/examples/widgets/painting/affine/.prev_CMakeLists.txt
index 6f9cd7c61a2..d367ef75bd0 100644
--- a/examples/widgets/painting/affine/.prev_CMakeLists.txt
+++ b/examples/widgets/painting/affine/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(affine
main.cpp
xform.cpp xform.h
)
+set_target_properties(affine PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(affine PUBLIC
../shared
)
diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt
index 73115feb9b7..c1ee72d15b8 100644
--- a/examples/widgets/painting/affine/CMakeLists.txt
+++ b/examples/widgets/painting/affine/CMakeLists.txt
@@ -29,6 +29,10 @@ qt_add_executable(affine
main.cpp
xform.cpp xform.h
)
+set_target_properties(affine PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(affine PUBLIC
../shared
)
diff --git a/examples/widgets/painting/basicdrawing/CMakeLists.txt b/examples/widgets/painting/basicdrawing/CMakeLists.txt
index 8b65526457f..b36f44f8bad 100644
--- a/examples/widgets/painting/basicdrawing/CMakeLists.txt
+++ b/examples/widgets/painting/basicdrawing/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(basicdrawing
renderarea.cpp renderarea.h
window.cpp window.h
)
+set_target_properties(basicdrawing PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(basicdrawing PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/composition/.prev_CMakeLists.txt b/examples/widgets/painting/composition/.prev_CMakeLists.txt
index 244066db4ef..5e3cb8c10c4 100644
--- a/examples/widgets/painting/composition/.prev_CMakeLists.txt
+++ b/examples/widgets/painting/composition/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(composition
composition.cpp composition.h
main.cpp
)
+set_target_properties(composition PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(composition PUBLIC
../shared
)
diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt
index 252f48bc49c..6d12f8a8999 100644
--- a/examples/widgets/painting/composition/CMakeLists.txt
+++ b/examples/widgets/painting/composition/CMakeLists.txt
@@ -29,6 +29,10 @@ qt_add_executable(composition
composition.cpp composition.h
main.cpp
)
+set_target_properties(composition PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(composition PUBLIC
../shared
)
diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt
index 3458fd52f7d..e75da10affb 100644
--- a/examples/widgets/painting/concentriccircles/CMakeLists.txt
+++ b/examples/widgets/painting/concentriccircles/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(concentriccircles
main.cpp
window.cpp window.h
)
+set_target_properties(concentriccircles PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(concentriccircles PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/deform/.prev_CMakeLists.txt b/examples/widgets/painting/deform/.prev_CMakeLists.txt
index fb803670c1b..4462680de7e 100644
--- a/examples/widgets/painting/deform/.prev_CMakeLists.txt
+++ b/examples/widgets/painting/deform/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(deform
main.cpp
pathdeform.cpp pathdeform.h
)
+set_target_properties(deform PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(deform PUBLIC
../shared
)
diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt
index d53f19edc68..61b28f1b3af 100644
--- a/examples/widgets/painting/deform/CMakeLists.txt
+++ b/examples/widgets/painting/deform/CMakeLists.txt
@@ -29,6 +29,10 @@ qt_add_executable(deform
main.cpp
pathdeform.cpp pathdeform.h
)
+set_target_properties(deform PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(deform PUBLIC
../shared
)
diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt
index 487152d1ed9..d3a7680bdc9 100644
--- a/examples/widgets/painting/fontsampler/CMakeLists.txt
+++ b/examples/widgets/painting/fontsampler/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fontsampler
mainwindow.cpp mainwindow.h
mainwindowbase.ui
)
+set_target_properties(fontsampler PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fontsampler PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/gradients/.prev_CMakeLists.txt b/examples/widgets/painting/gradients/.prev_CMakeLists.txt
index 5cb7e5b745f..7e798d032ef 100644
--- a/examples/widgets/painting/gradients/.prev_CMakeLists.txt
+++ b/examples/widgets/painting/gradients/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(gradients
gradients.cpp gradients.h
main.cpp
)
+set_target_properties(gradients PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(gradients PUBLIC
../shared
)
diff --git a/examples/widgets/painting/gradients/CMakeLists.txt b/examples/widgets/painting/gradients/CMakeLists.txt
index 60da6b6e0fb..0570ccfa373 100644
--- a/examples/widgets/painting/gradients/CMakeLists.txt
+++ b/examples/widgets/painting/gradients/CMakeLists.txt
@@ -29,6 +29,10 @@ qt_add_executable(gradients
gradients.cpp gradients.h
main.cpp
)
+set_target_properties(gradients PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(gradients PUBLIC
../shared
)
diff --git a/examples/widgets/painting/imagecomposition/CMakeLists.txt b/examples/widgets/painting/imagecomposition/CMakeLists.txt
index 79c0fdd27be..d90958d77be 100644
--- a/examples/widgets/painting/imagecomposition/CMakeLists.txt
+++ b/examples/widgets/painting/imagecomposition/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(imagecomposition
imagecomposer.cpp imagecomposer.h
main.cpp
)
+set_target_properties(imagecomposition PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imagecomposition PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/painterpaths/CMakeLists.txt b/examples/widgets/painting/painterpaths/CMakeLists.txt
index 6c867d5edbe..4b4b36fa084 100644
--- a/examples/widgets/painting/painterpaths/CMakeLists.txt
+++ b/examples/widgets/painting/painterpaths/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(painterpaths
renderarea.cpp renderarea.h
window.cpp window.h
)
+set_target_properties(painterpaths PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(painterpaths PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt
index bf54a9bd6cf..22a6635164d 100644
--- a/examples/widgets/painting/pathstroke/CMakeLists.txt
+++ b/examples/widgets/painting/pathstroke/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(pathstroke
main.cpp
pathstroke.cpp pathstroke.h
)
+set_target_properties(pathstroke PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(pathstroke PUBLIC
../shared
)
diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt
index a885d762855..c0ca191c8ad 100644
--- a/examples/widgets/painting/transformations/CMakeLists.txt
+++ b/examples/widgets/painting/transformations/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(transformations
renderarea.cpp renderarea.h
window.cpp window.h
)
+set_target_properties(transformations PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(transformations PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/richtext/calendar/CMakeLists.txt b/examples/widgets/richtext/calendar/CMakeLists.txt
index dbab2e2fe42..d8ef569f5ff 100644
--- a/examples/widgets/richtext/calendar/CMakeLists.txt
+++ b/examples/widgets/richtext/calendar/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(calendar
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(calendar PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(calendar PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/richtext/orderform/CMakeLists.txt b/examples/widgets/richtext/orderform/CMakeLists.txt
index d68274edef8..d1538778cca 100644
--- a/examples/widgets/richtext/orderform/CMakeLists.txt
+++ b/examples/widgets/richtext/orderform/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(orderform
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(orderform PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(orderform PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
index 6139f73f54c..5bdc9f79814 100644
--- a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
+++ b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(syntaxhighlighter
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(syntaxhighlighter PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(syntaxhighlighter PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt b/examples/widgets/richtext/textedit/.prev_CMakeLists.txt
index 14152519c18..97fde062ddf 100644
--- a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt
+++ b/examples/widgets/richtext/textedit/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(textedit
main.cpp
textedit.cpp textedit.h
)
+set_target_properties(textedit PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(textedit PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/richtext/textedit/CMakeLists.txt b/examples/widgets/richtext/textedit/CMakeLists.txt
index 4bef3d69f69..a376f9f7479 100644
--- a/examples/widgets/richtext/textedit/CMakeLists.txt
+++ b/examples/widgets/richtext/textedit/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(textedit
main.cpp
textedit.cpp textedit.h
)
+set_target_properties(textedit PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(textedit PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/scroller/graphicsview/CMakeLists.txt b/examples/widgets/scroller/graphicsview/CMakeLists.txt
index afe934837a5..cf1349f1105 100644
--- a/examples/widgets/scroller/graphicsview/CMakeLists.txt
+++ b/examples/widgets/scroller/graphicsview/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(graphicsview
main.cpp
)
+set_target_properties(graphicsview PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(graphicsview PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/completer/CMakeLists.txt b/examples/widgets/tools/completer/CMakeLists.txt
index 512d7a38649..a04d25f0450 100644
--- a/examples/widgets/tools/completer/CMakeLists.txt
+++ b/examples/widgets/tools/completer/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(completer
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(completer PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(completer PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/customcompleter/CMakeLists.txt b/examples/widgets/tools/customcompleter/CMakeLists.txt
index 0c17aaaaf13..13dd1123eb1 100644
--- a/examples/widgets/tools/customcompleter/CMakeLists.txt
+++ b/examples/widgets/tools/customcompleter/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(customcompleter
mainwindow.cpp mainwindow.h
textedit.cpp textedit.h
)
+set_target_properties(customcompleter PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customcompleter PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt
index 6bba4b9f77f..1262ce5452a 100644
--- a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt
+++ b/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(echoplugin
echowindow.cpp echowindow.h
main.cpp
)
+set_target_properties(echoplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(echoplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
index 4ddd0bc4d77..3814fb235d5 100644
--- a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
+++ b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(echopluginwindow # special case: renamed target
echowindow.cpp echowindow.h
main.cpp
)
+set_target_properties(echopluginwindow PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(echopluginwindow PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt
index 1ca49a1aca6..3e605cd2c9c 100644
--- a/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt
+++ b/examples/widgets/tools/echoplugin/plugin/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_plugin(echoplugin)
target_sources(echoplugin PRIVATE
echoplugin.cpp echoplugin.h
)
+set_target_properties(echoplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(echoplugin PUBLIC
../echowindow
)
diff --git a/examples/widgets/tools/i18n/CMakeLists.txt b/examples/widgets/tools/i18n/CMakeLists.txt
index 361453c8ad1..75798533129 100644
--- a/examples/widgets/tools/i18n/CMakeLists.txt
+++ b/examples/widgets/tools/i18n/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(i18n
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(i18n PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(i18n PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt
index db70d80ad6e..feaac7ad8f2 100644
--- a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt
+++ b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(plugandpaint
paintarea.cpp paintarea.h
plugindialog.cpp plugindialog.h
)
+set_target_properties(plugandpaint PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(plugandpaint PUBLIC
# Remove: L../plugins
Qt::Core
diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
index da4c568dc6f..bdf934fa2cb 100644
--- a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
+++ b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(plugandpaint
paintarea.cpp paintarea.h
plugindialog.cpp plugindialog.h
)
+set_target_properties(plugandpaint PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(plugandpaint PUBLIC
# Remove: L../plugins
Qt::Core
diff --git a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
index 8baeb5357d2..97e4021d616 100644
--- a/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
+++ b/examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_plugin(pnp_basictools STATIC)
target_sources(pnp_basictools PRIVATE
basictoolsplugin.cpp basictoolsplugin.h
)
+set_target_properties(pnp_basictools PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(pnp_basictools PUBLIC
../../app
)
diff --git a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
index 1c2d500497e..bb6948e610e 100644
--- a/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
+++ b/examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_plugin(pnp_extrafilters)
target_sources(pnp_extrafilters PRIVATE
extrafiltersplugin.cpp extrafiltersplugin.h
)
+set_target_properties(pnp_extrafilters PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(pnp_extrafilters PUBLIC
../../app
)
diff --git a/examples/widgets/tools/regularexpression/CMakeLists.txt b/examples/widgets/tools/regularexpression/CMakeLists.txt
index 7ffda47adb8..c0dbf8e24e2 100644
--- a/examples/widgets/tools/regularexpression/CMakeLists.txt
+++ b/examples/widgets/tools/regularexpression/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(regularexpression
main.cpp
regularexpressiondialog.cpp regularexpressiondialog.h
)
+set_target_properties(regularexpression PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(regularexpression PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/settingseditor/CMakeLists.txt b/examples/widgets/tools/settingseditor/CMakeLists.txt
index eda21b71e25..b875192bbb2 100644
--- a/examples/widgets/tools/settingseditor/CMakeLists.txt
+++ b/examples/widgets/tools/settingseditor/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(settingseditor
settingstree.cpp settingstree.h
variantdelegate.cpp variantdelegate.h
)
+set_target_properties(settingseditor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(settingseditor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt
index 84266d0068b..d3899bc0f48 100644
--- a/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt
+++ b/examples/widgets/tools/styleplugin/plugin/CMakeLists.txt
@@ -24,6 +24,10 @@ target_sources(simplestyleplugin PRIVATE
simplestyle.cpp simplestyle.h
simplestyleplugin.cpp simplestyleplugin.h
)
+set_target_properties(simplestyleplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(simplestyleplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
index d018ec02072..5d692b05647 100644
--- a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
+++ b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(styleplugin
main.cpp
stylewindow.cpp stylewindow.h
)
+set_target_properties(styleplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(styleplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
index 7cefcd5ea56..34d1d996ed9 100644
--- a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
+++ b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(treemodelcompleter
mainwindow.cpp mainwindow.h
treemodelcompleter.cpp treemodelcompleter.h
)
+set_target_properties(treemodelcompleter PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(treemodelcompleter PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/undo/CMakeLists.txt b/examples/widgets/tools/undo/CMakeLists.txt
index 70e38a88660..8156e12bcde 100644
--- a/examples/widgets/tools/undo/CMakeLists.txt
+++ b/examples/widgets/tools/undo/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(undo
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
)
+set_target_properties(undo PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(undo PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tools/undoframework/CMakeLists.txt b/examples/widgets/tools/undoframework/CMakeLists.txt
index a4a91ae7c4b..9286f83ddb3 100644
--- a/examples/widgets/tools/undoframework/CMakeLists.txt
+++ b/examples/widgets/tools/undoframework/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(undoframework
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(undoframework PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(undoframework PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/touch/dials/CMakeLists.txt b/examples/widgets/touch/dials/CMakeLists.txt
index d779ed657cd..81a4878c802 100644
--- a/examples/widgets/touch/dials/CMakeLists.txt
+++ b/examples/widgets/touch/dials/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(dials
dials.ui
main.cpp
)
+set_target_properties(dials PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dials PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt b/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt
index 2bd6de1ae03..3077bf5bc6f 100644
--- a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt
+++ b/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(fingerpaint
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
)
+set_target_properties(fingerpaint PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fingerpaint PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/touch/fingerpaint/CMakeLists.txt b/examples/widgets/touch/fingerpaint/CMakeLists.txt
index 40c38c14a5b..9f677d7467d 100644
--- a/examples/widgets/touch/fingerpaint/CMakeLists.txt
+++ b/examples/widgets/touch/fingerpaint/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(fingerpaint
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
)
+set_target_properties(fingerpaint PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(fingerpaint PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/touch/knobs/CMakeLists.txt b/examples/widgets/touch/knobs/CMakeLists.txt
index dcf612d5ffe..08dfb0a78aa 100644
--- a/examples/widgets/touch/knobs/CMakeLists.txt
+++ b/examples/widgets/touch/knobs/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(knobs
knob.cpp knob.h
main.cpp
)
+set_target_properties(knobs PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(knobs PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/touch/pinchzoom/CMakeLists.txt b/examples/widgets/touch/pinchzoom/CMakeLists.txt
index d68559ff9b2..62883016832 100644
--- a/examples/widgets/touch/pinchzoom/CMakeLists.txt
+++ b/examples/widgets/touch/pinchzoom/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(pinchzoom
main.cpp
mouse.cpp mouse.h
)
+set_target_properties(pinchzoom PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(pinchzoom PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
index 38a6c233900..264b22e2594 100644
--- a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(part1
addressbook.cpp addressbook.h
main.cpp
)
+set_target_properties(part1 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part1 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
index a29d4fdd029..8e5e4468029 100644
--- a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(part2
addressbook.cpp addressbook.h
main.cpp
)
+set_target_properties(part2 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part2 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
index 24fd5ac3158..3cf1f5c49f9 100644
--- a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(part3
addressbook.cpp addressbook.h
main.cpp
)
+set_target_properties(part3 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part3 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
index 29115c8667c..04973537534 100644
--- a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(part4
addressbook.cpp addressbook.h
main.cpp
)
+set_target_properties(part4 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part4 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
index 1176f887746..d3ac9610645 100644
--- a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(part5
finddialog.cpp finddialog.h
main.cpp
)
+set_target_properties(part5 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part5 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
index 214bd2eeb29..a3dd87619a7 100644
--- a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(part6
finddialog.cpp finddialog.h
main.cpp
)
+set_target_properties(part6 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part6 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
index ba349acba68..88b5ca3a1e7 100644
--- a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(part7
finddialog.cpp finddialog.h
main.cpp
)
+set_target_properties(part7 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part7 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
index 86dde1ee5c6..e2877a26ba0 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(part1
main.cpp
)
+set_target_properties(part1 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part1 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
index fb1cfc547e8..65a3ff3539d 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(part2
main.cpp
)
+set_target_properties(part2 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part2 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
index ef1a9d8cd07..4a9b79b00be 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(part3
main.cpp
)
+set_target_properties(part3 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part3 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
index b7cd3a7d0e7..b1b224c70d2 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(part4
main.cpp
)
+set_target_properties(part4 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part4 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
index 7f8f3eb0f39..182c2e9a483 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(part5
main.cpp
)
+set_target_properties(part5 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(part5 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
index 857e8a05821..a9aa027352b 100644
--- a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_readonly
main.cpp
mymodel.cpp mymodel.h
)
+set_target_properties(mv_readonly PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_readonly PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
index 04871d40431..d17ac4f4131 100644
--- a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_formatting
main.cpp
mymodel.cpp mymodel.h
)
+set_target_properties(mv_formatting PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_formatting PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
index cd558a0b881..02305a81409 100644
--- a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_changingmodel
main.cpp
mymodel.cpp mymodel.h
)
+set_target_properties(mv_changingmodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_changingmodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
index f317888cf75..1ff44691a17 100644
--- a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_headers
main.cpp
mymodel.cpp mymodel.h
)
+set_target_properties(mv_headers PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_headers PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
index 2a6b68e1c4d..bcb0f067140 100644
--- a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(mv_edit
mainwindow.cpp mainwindow.h
mymodel.cpp mymodel.h
)
+set_target_properties(mv_edit PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_edit PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
index 701d7663223..d020349fa58 100644
--- a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_tree
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(mv_tree PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_tree PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
index 15033ccf0ac..776b8d76885 100644
--- a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mv_selections
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(mv_selections PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mv_selections PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt
index 120cc3ba7ac..119ca9d6cf4 100644
--- a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt
+++ b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(notepad
main.cpp
notepad.cpp notepad.h notepad.ui
)
+set_target_properties(notepad PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(notepad PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/notepad/CMakeLists.txt b/examples/widgets/tutorials/notepad/CMakeLists.txt
index 9a683791a42..267c3583b75 100644
--- a/examples/widgets/tutorials/notepad/CMakeLists.txt
+++ b/examples/widgets/tutorials/notepad/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(notepad
main.cpp
notepad.cpp notepad.h notepad.ui
)
+set_target_properties(notepad PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(notepad PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
index dbf9b3f44e4..c5852850ae3 100644
--- a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(childwidget
main.cpp
)
+set_target_properties(childwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(childwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
index 4824d9a0830..b7aca1b946a 100644
--- a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(nestedlayouts
main.cpp
)
+set_target_properties(nestedlayouts PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(nestedlayouts PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
index d1e30f78792..35296c8621a 100644
--- a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(toplevel
main.cpp
)
+set_target_properties(toplevel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(toplevel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
index 918f66b09e4..71f848d3870 100644
--- a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(windowlayout
main.cpp
)
+set_target_properties(windowlayout PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(windowlayout PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/analogclock/CMakeLists.txt b/examples/widgets/widgets/analogclock/CMakeLists.txt
index 82d953e03c5..50dc07919c2 100644
--- a/examples/widgets/widgets/analogclock/CMakeLists.txt
+++ b/examples/widgets/widgets/analogclock/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(analogclock
analogclock.cpp analogclock.h
main.cpp
)
+set_target_properties(analogclock PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(analogclock PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/calculator/CMakeLists.txt b/examples/widgets/widgets/calculator/CMakeLists.txt
index 46471582ac7..5f961e350d5 100644
--- a/examples/widgets/widgets/calculator/CMakeLists.txt
+++ b/examples/widgets/widgets/calculator/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(calculator
calculator.cpp calculator.h
main.cpp
)
+set_target_properties(calculator PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(calculator PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/calendarwidget/CMakeLists.txt b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
index 978deb93e47..74c342ab736 100644
--- a/examples/widgets/widgets/calendarwidget/CMakeLists.txt
+++ b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(calendarwidget
main.cpp
window.cpp window.h
)
+set_target_properties(calendarwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(calendarwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/charactermap/CMakeLists.txt b/examples/widgets/widgets/charactermap/CMakeLists.txt
index c4d345773ce..07791589c10 100644
--- a/examples/widgets/widgets/charactermap/CMakeLists.txt
+++ b/examples/widgets/widgets/charactermap/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(charactermap
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(charactermap PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(charactermap PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/codeeditor/CMakeLists.txt b/examples/widgets/widgets/codeeditor/CMakeLists.txt
index 358f57af9be..58665eca3c2 100644
--- a/examples/widgets/widgets/codeeditor/CMakeLists.txt
+++ b/examples/widgets/widgets/codeeditor/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(codeeditor
codeeditor.cpp codeeditor.h
main.cpp
)
+set_target_properties(codeeditor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(codeeditor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/digitalclock/CMakeLists.txt b/examples/widgets/widgets/digitalclock/CMakeLists.txt
index 462b8004b3a..5cff6b456f9 100644
--- a/examples/widgets/widgets/digitalclock/CMakeLists.txt
+++ b/examples/widgets/widgets/digitalclock/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(digitalclock
digitalclock.cpp digitalclock.h
main.cpp
)
+set_target_properties(digitalclock PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(digitalclock PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/elidedlabel/CMakeLists.txt b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
index 132e13784ef..338a6cfefe7 100644
--- a/examples/widgets/widgets/elidedlabel/CMakeLists.txt
+++ b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(elidedlabel
main.cpp
testwidget.cpp testwidget.h
)
+set_target_properties(elidedlabel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(elidedlabel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/groupbox/CMakeLists.txt b/examples/widgets/widgets/groupbox/CMakeLists.txt
index e647311b3b5..74f2fe037f2 100644
--- a/examples/widgets/widgets/groupbox/CMakeLists.txt
+++ b/examples/widgets/widgets/groupbox/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(groupbox
main.cpp
window.cpp window.h
)
+set_target_properties(groupbox PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(groupbox PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/icons/.prev_CMakeLists.txt b/examples/widgets/widgets/icons/.prev_CMakeLists.txt
index 98cb1d1c14b..ff25b3eaef9 100644
--- a/examples/widgets/widgets/icons/.prev_CMakeLists.txt
+++ b/examples/widgets/widgets/icons/.prev_CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(icons
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(icons PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_compile_definitions(icons PUBLIC
SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
)
diff --git a/examples/widgets/widgets/icons/CMakeLists.txt b/examples/widgets/widgets/icons/CMakeLists.txt
index a3342d02fe6..e14272e7777 100644
--- a/examples/widgets/widgets/icons/CMakeLists.txt
+++ b/examples/widgets/widgets/icons/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(icons
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(icons PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_compile_definitions(icons PUBLIC
SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}" # special case
)
diff --git a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt b/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt
index e44087fe752..9603f8dcbd8 100644
--- a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt
+++ b/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(imageviewer
imageviewer.cpp imageviewer.h
main.cpp
)
+set_target_properties(imageviewer PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imageviewer PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/imageviewer/CMakeLists.txt b/examples/widgets/widgets/imageviewer/CMakeLists.txt
index c68a541ed32..a52bc5fb341 100644
--- a/examples/widgets/widgets/imageviewer/CMakeLists.txt
+++ b/examples/widgets/widgets/imageviewer/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(imageviewer
imageviewer.cpp imageviewer.h
main.cpp
)
+set_target_properties(imageviewer PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imageviewer PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/lineedits/CMakeLists.txt b/examples/widgets/widgets/lineedits/CMakeLists.txt
index 5a61458607d..9e219e1038f 100644
--- a/examples/widgets/widgets/lineedits/CMakeLists.txt
+++ b/examples/widgets/widgets/lineedits/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(lineedits
main.cpp
window.cpp window.h
)
+set_target_properties(lineedits PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(lineedits PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/mousebuttons/CMakeLists.txt b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
index c623111d51c..6a8a365d338 100644
--- a/examples/widgets/widgets/mousebuttons/CMakeLists.txt
+++ b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(mousebuttons
buttontester.cpp buttontester.h
main.cpp
)
+set_target_properties(mousebuttons PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mousebuttons PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/movie/CMakeLists.txt b/examples/widgets/widgets/movie/CMakeLists.txt
index d56b77be8b9..a990a98f48e 100644
--- a/examples/widgets/widgets/movie/CMakeLists.txt
+++ b/examples/widgets/widgets/movie/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(movie
main.cpp
movieplayer.cpp movieplayer.h
)
+set_target_properties(movie PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(movie PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt b/examples/widgets/widgets/scribble/.prev_CMakeLists.txt
index 5b3e6b01cfa..2ce40dc8cbd 100644
--- a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt
+++ b/examples/widgets/widgets/scribble/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(scribble
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
)
+set_target_properties(scribble PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(scribble PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/scribble/CMakeLists.txt b/examples/widgets/widgets/scribble/CMakeLists.txt
index a2f774caa88..dc7f0f56bbb 100644
--- a/examples/widgets/widgets/scribble/CMakeLists.txt
+++ b/examples/widgets/widgets/scribble/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(scribble
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
)
+set_target_properties(scribble PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(scribble PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/shapedclock/CMakeLists.txt b/examples/widgets/widgets/shapedclock/CMakeLists.txt
index 2d4839e8d21..de91c6410c5 100644
--- a/examples/widgets/widgets/shapedclock/CMakeLists.txt
+++ b/examples/widgets/widgets/shapedclock/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(shapedclock
main.cpp
shapedclock.cpp shapedclock.h
)
+set_target_properties(shapedclock PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(shapedclock PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/sliders/CMakeLists.txt b/examples/widgets/widgets/sliders/CMakeLists.txt
index 6b3014159e9..07dd0c03266 100644
--- a/examples/widgets/widgets/sliders/CMakeLists.txt
+++ b/examples/widgets/widgets/sliders/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(sliders
slidersgroup.cpp slidersgroup.h
window.cpp window.h
)
+set_target_properties(sliders PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sliders PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/spinboxes/CMakeLists.txt b/examples/widgets/widgets/spinboxes/CMakeLists.txt
index 32a48c5f588..ade330faf2d 100644
--- a/examples/widgets/widgets/spinboxes/CMakeLists.txt
+++ b/examples/widgets/widgets/spinboxes/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(spinboxes
main.cpp
window.cpp window.h
)
+set_target_properties(spinboxes PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(spinboxes PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/styles/CMakeLists.txt b/examples/widgets/widgets/styles/CMakeLists.txt
index 0cf487df82f..c847af915c5 100644
--- a/examples/widgets/widgets/styles/CMakeLists.txt
+++ b/examples/widgets/widgets/styles/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(styles
norwegianwoodstyle.cpp norwegianwoodstyle.h
widgetgallery.cpp widgetgallery.h
)
+set_target_properties(styles PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(styles PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/stylesheet/CMakeLists.txt b/examples/widgets/widgets/stylesheet/CMakeLists.txt
index 40c915ac14a..ccfb15f68c0 100644
--- a/examples/widgets/widgets/stylesheet/CMakeLists.txt
+++ b/examples/widgets/widgets/stylesheet/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(stylesheet
mainwindow.cpp mainwindow.h mainwindow.ui
stylesheeteditor.cpp stylesheeteditor.h stylesheeteditor.ui
)
+set_target_properties(stylesheet PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(stylesheet PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/tablet/CMakeLists.txt b/examples/widgets/widgets/tablet/CMakeLists.txt
index 6b30e0dfab8..c411cc4fef9 100644
--- a/examples/widgets/widgets/tablet/CMakeLists.txt
+++ b/examples/widgets/widgets/tablet/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(qttablet
tabletapplication.cpp tabletapplication.h
tabletcanvas.cpp tabletcanvas.h
)
+set_target_properties(qttablet PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qttablet PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/tetrix/CMakeLists.txt b/examples/widgets/widgets/tetrix/CMakeLists.txt
index 3de565dd23d..58237e29621 100644
--- a/examples/widgets/widgets/tetrix/CMakeLists.txt
+++ b/examples/widgets/widgets/tetrix/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(tetrix
tetrixpiece.cpp tetrixpiece.h
tetrixwindow.cpp tetrixwindow.h
)
+set_target_properties(tetrix PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tetrix PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/tooltips/CMakeLists.txt b/examples/widgets/widgets/tooltips/CMakeLists.txt
index 393657dc3ce..bde6e4fc27c 100644
--- a/examples/widgets/widgets/tooltips/CMakeLists.txt
+++ b/examples/widgets/widgets/tooltips/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(tooltips
shapeitem.cpp shapeitem.h
sortingbox.cpp sortingbox.h
)
+set_target_properties(tooltips PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tooltips PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/validators/CMakeLists.txt b/examples/widgets/widgets/validators/CMakeLists.txt
index 93c3af5c236..d5ea9b833ea 100644
--- a/examples/widgets/widgets/validators/CMakeLists.txt
+++ b/examples/widgets/widgets/validators/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(validators
validators.ui
validatorwidget.cpp validatorwidget.h
)
+set_target_properties(validators PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(validators PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/wiggly/CMakeLists.txt b/examples/widgets/widgets/wiggly/CMakeLists.txt
index a1a1ea5b05b..daf816d46ea 100644
--- a/examples/widgets/widgets/wiggly/CMakeLists.txt
+++ b/examples/widgets/widgets/wiggly/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(wiggly
main.cpp
wigglywidget.cpp wigglywidget.h
)
+set_target_properties(wiggly PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(wiggly PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/widgets/windowflags/CMakeLists.txt b/examples/widgets/widgets/windowflags/CMakeLists.txt
index 7d25bdad453..93ab0d9dbf2 100644
--- a/examples/widgets/widgets/windowflags/CMakeLists.txt
+++ b/examples/widgets/widgets/windowflags/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(windowflags
main.cpp
previewwindow.cpp previewwindow.h
)
+set_target_properties(windowflags PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(windowflags PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/windowcontainer/CMakeLists.txt b/examples/widgets/windowcontainer/CMakeLists.txt
index d27691b5725..83486946662 100644
--- a/examples/widgets/windowcontainer/CMakeLists.txt
+++ b/examples/widgets/windowcontainer/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(windowcontainer
../../opengl/openglwindow/openglwindow.cpp ../../opengl/openglwindow/openglwindow.h
windowcontainer.cpp
)
+set_target_properties(windowcontainer PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(windowcontainer PUBLIC
../../opengl/openglwindow
)
diff --git a/examples/xml/dombookmarks/CMakeLists.txt b/examples/xml/dombookmarks/CMakeLists.txt
index e3de1fd26db..11e3fcc5e4e 100644
--- a/examples/xml/dombookmarks/CMakeLists.txt
+++ b/examples/xml/dombookmarks/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(dombookmarks
mainwindow.cpp mainwindow.h
xbeltree.cpp xbeltree.h
)
+set_target_properties(dombookmarks PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dombookmarks PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/xml/htmlinfo/CMakeLists.txt b/examples/xml/htmlinfo/CMakeLists.txt
index d4676de3247..1afb256ff20 100644
--- a/examples/xml/htmlinfo/CMakeLists.txt
+++ b/examples/xml/htmlinfo/CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(htmlinfo
main.cpp
)
+set_target_properties(htmlinfo PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(htmlinfo PUBLIC
Qt::Core
)
diff --git a/examples/xml/rsslisting/CMakeLists.txt b/examples/xml/rsslisting/CMakeLists.txt
index caa4738f6e1..9ee2c69c545 100644
--- a/examples/xml/rsslisting/CMakeLists.txt
+++ b/examples/xml/rsslisting/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(rsslisting
main.cpp
rsslisting.cpp rsslisting.h
)
+set_target_properties(rsslisting PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(rsslisting PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/xml/streambookmarks/CMakeLists.txt b/examples/xml/streambookmarks/CMakeLists.txt
index 6a6de031e5d..51393a2727d 100644
--- a/examples/xml/streambookmarks/CMakeLists.txt
+++ b/examples/xml/streambookmarks/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(streambookmarks
xbelreader.cpp xbelreader.h
xbelwriter.cpp xbelwriter.h
)
+set_target_properties(streambookmarks PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(streambookmarks PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/xml/xmlstreamlint/.prev_CMakeLists.txt b/examples/xml/xmlstreamlint/.prev_CMakeLists.txt
index 215cc83f6e6..23d62e7b1c3 100644
--- a/examples/xml/xmlstreamlint/.prev_CMakeLists.txt
+++ b/examples/xml/xmlstreamlint/.prev_CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(xmlstreamlint
main.cpp
)
+set_target_properties(xmlstreamlint PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(xmlstreamlint PUBLIC
Qt::Core
)
diff --git a/examples/xml/xmlstreamlint/CMakeLists.txt b/examples/xml/xmlstreamlint/CMakeLists.txt
index 0642344892e..8f3a02826b4 100644
--- a/examples/xml/xmlstreamlint/CMakeLists.txt
+++ b/examples/xml/xmlstreamlint/CMakeLists.txt
@@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core Xml) # special case
qt_add_executable(xmlstreamlint
main.cpp
)
+set_target_properties(xmlstreamlint PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+)
target_link_libraries(xmlstreamlint PUBLIC
Qt::Core
Qt::Xml # special case: add