From 397b3725176780d8888f8499cac0127dbb7df2c7 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 26 Oct 2020 16:22:32 +0100 Subject: CMake: Regenerate examples to set the WIN32_EXECUTABLE property As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Task-number: QTBUG-86827 Change-Id: I7677449a26d51fa853bd67bab6b3b61afbd2b12f Reviewed-by: Joerg Bornemann --- examples/corelib/ipc/localfortuneclient/CMakeLists.txt | 4 ++++ examples/corelib/ipc/localfortuneserver/CMakeLists.txt | 4 ++++ examples/corelib/ipc/sharedmemory/CMakeLists.txt | 4 ++++ examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt | 4 ++++ examples/corelib/serialization/cbordump/CMakeLists.txt | 4 ++++ examples/corelib/serialization/convert/CMakeLists.txt | 4 ++++ examples/corelib/serialization/savegame/CMakeLists.txt | 4 ++++ examples/corelib/threads/mandelbrot/CMakeLists.txt | 4 ++++ examples/corelib/threads/queuedcustomtype/CMakeLists.txt | 4 ++++ examples/corelib/threads/semaphores/CMakeLists.txt | 4 ++++ examples/corelib/threads/waitconditions/CMakeLists.txt | 4 ++++ examples/corelib/tools/contiguouscache/CMakeLists.txt | 4 ++++ examples/corelib/tools/customtype/CMakeLists.txt | 4 ++++ examples/corelib/tools/customtypesending/CMakeLists.txt | 4 ++++ examples/dbus/chat/.prev_CMakeLists.txt | 4 ++++ examples/dbus/chat/CMakeLists.txt | 4 ++++ examples/dbus/complexpingpong/CMakeLists.txt | 8 ++++++++ examples/dbus/listnames/CMakeLists.txt | 10 ++++++++++ examples/dbus/pingpong/CMakeLists.txt | 8 ++++++++ examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt | 4 ++++ examples/dbus/remotecontrolledcar/car/CMakeLists.txt | 4 ++++ .../dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt | 4 ++++ examples/dbus/remotecontrolledcar/controller/CMakeLists.txt | 4 ++++ examples/embedded/digiflip/CMakeLists.txt | 4 ++++ examples/embedded/flickable/CMakeLists.txt | 4 ++++ examples/embedded/flightinfo/CMakeLists.txt | 4 ++++ examples/embedded/lightmaps/CMakeLists.txt | 4 ++++ examples/embedded/raycasting/CMakeLists.txt | 4 ++++ examples/embedded/styleexample/CMakeLists.txt | 4 ++++ examples/gui/analogclock/.prev_CMakeLists.txt | 4 ++++ examples/gui/analogclock/CMakeLists.txt | 4 ++++ examples/gui/rasterwindow/.prev_CMakeLists.txt | 4 ++++ examples/gui/rasterwindow/CMakeLists.txt | 4 ++++ examples/network/blockingfortuneclient/CMakeLists.txt | 4 ++++ examples/network/broadcastreceiver/CMakeLists.txt | 4 ++++ examples/network/broadcastsender/CMakeLists.txt | 4 ++++ examples/network/dnslookup/CMakeLists.txt | 4 ++++ examples/network/download/CMakeLists.txt | 4 ++++ examples/network/downloadmanager/CMakeLists.txt | 4 ++++ examples/network/fortuneclient/CMakeLists.txt | 4 ++++ examples/network/fortuneserver/CMakeLists.txt | 4 ++++ examples/network/googlesuggest/CMakeLists.txt | 4 ++++ examples/network/http/CMakeLists.txt | 4 ++++ examples/network/loopback/CMakeLists.txt | 4 ++++ examples/network/multicastreceiver/CMakeLists.txt | 4 ++++ examples/network/multicastsender/CMakeLists.txt | 4 ++++ examples/network/multistreamclient/CMakeLists.txt | 4 ++++ examples/network/multistreamserver/CMakeLists.txt | 4 ++++ examples/network/network-chat/CMakeLists.txt | 4 ++++ examples/network/securesocketclient/CMakeLists.txt | 4 ++++ examples/network/secureudpclient/CMakeLists.txt | 4 ++++ examples/network/secureudpserver/CMakeLists.txt | 4 ++++ examples/network/threadedfortuneserver/CMakeLists.txt | 4 ++++ examples/network/torrent/.prev_CMakeLists.txt | 4 ++++ examples/network/torrent/CMakeLists.txt | 4 ++++ examples/opengl/2dpainting/CMakeLists.txt | 4 ++++ examples/opengl/computegles31/CMakeLists.txt | 4 ++++ examples/opengl/contextinfo/CMakeLists.txt | 4 ++++ examples/opengl/cube/CMakeLists.txt | 4 ++++ examples/opengl/hellogl2/CMakeLists.txt | 4 ++++ examples/opengl/hellogles3/CMakeLists.txt | 4 ++++ examples/opengl/hellowindow/CMakeLists.txt | 4 ++++ examples/opengl/openglwindow/CMakeLists.txt | 4 ++++ examples/opengl/paintedwindow/CMakeLists.txt | 4 ++++ examples/opengl/qopenglwidget/CMakeLists.txt | 4 ++++ examples/opengl/qopenglwindow/CMakeLists.txt | 4 ++++ examples/opengl/textures/CMakeLists.txt | 4 ++++ examples/opengl/threadedqopenglwidget/CMakeLists.txt | 4 ++++ examples/qpa/qrasterwindow/CMakeLists.txt | 4 ++++ examples/qpa/windows/CMakeLists.txt | 4 ++++ examples/qtconcurrent/imagescaling/CMakeLists.txt | 4 ++++ examples/qtconcurrent/map/.prev_CMakeLists.txt | 4 ++++ examples/qtconcurrent/map/CMakeLists.txt | 4 ++++ examples/qtconcurrent/progressdialog/CMakeLists.txt | 4 ++++ examples/qtconcurrent/runfunction/CMakeLists.txt | 4 ++++ examples/qtconcurrent/wordcount/CMakeLists.txt | 4 ++++ examples/qtestlib/tutorial1/CMakeLists.txt | 4 ++++ examples/qtestlib/tutorial2/CMakeLists.txt | 4 ++++ examples/qtestlib/tutorial3/CMakeLists.txt | 4 ++++ examples/qtestlib/tutorial4/CMakeLists.txt | 4 ++++ examples/qtestlib/tutorial5/CMakeLists.txt | 4 ++++ examples/sql/books/CMakeLists.txt | 4 ++++ examples/sql/cachedtable/CMakeLists.txt | 4 ++++ examples/sql/drilldown/CMakeLists.txt | 4 ++++ examples/sql/masterdetail/CMakeLists.txt | 4 ++++ examples/sql/querymodel/CMakeLists.txt | 4 ++++ examples/sql/relationaltablemodel/CMakeLists.txt | 4 ++++ examples/sql/sqlbrowser/CMakeLists.txt | 4 ++++ examples/sql/sqlwidgetmapper/CMakeLists.txt | 4 ++++ examples/sql/tablemodel/CMakeLists.txt | 4 ++++ examples/vulkan/hellovulkancubes/CMakeLists.txt | 4 ++++ examples/vulkan/hellovulkantexture/CMakeLists.txt | 4 ++++ examples/vulkan/hellovulkantriangle/CMakeLists.txt | 4 ++++ examples/vulkan/hellovulkanwidget/CMakeLists.txt | 4 ++++ examples/vulkan/hellovulkanwindow/CMakeLists.txt | 4 ++++ examples/widgets/animation/easing/CMakeLists.txt | 4 ++++ examples/widgets/desktop/screenshot/CMakeLists.txt | 4 ++++ examples/widgets/desktop/systray/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/classwizard/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/extension/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/findfiles/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/licensewizard/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/standarddialogs/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/tabdialog/CMakeLists.txt | 4 ++++ examples/widgets/dialogs/trivialwizard/CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/draggableicons/CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/draggabletext/CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/dropsite/CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt | 4 ++++ examples/widgets/draganddrop/puzzle/CMakeLists.txt | 4 ++++ examples/widgets/effects/blurpicker/CMakeLists.txt | 4 ++++ examples/widgets/effects/fademessage/CMakeLists.txt | 4 ++++ examples/widgets/gallery/CMakeLists.txt | 4 ++++ examples/widgets/gestures/imagegestures/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/anchorlayout/CMakeLists.txt | 4 ++++ .../widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/chip/.prev_CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/chip/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/collidingmice/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/diagramscene/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/elasticnodes/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt | 4 ++++ examples/widgets/graphicsview/flowlayout/CMakeLists.txt | 4 ++++ .../widgets/graphicsview/simpleanchorlayout/CMakeLists.txt | 4 ++++ .../widgets/graphicsview/weatheranchorlayout/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/addressbook/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/chart/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt | 4 ++++ .../widgets/itemviews/customsortfiltermodel/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/dirview/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/editabletreemodel/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/fetchmore/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/flattreeview/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/frozencolumn/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/interview/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt | 4 ++++ examples/widgets/itemviews/pixelator/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt | 4 ++++ examples/widgets/itemviews/puzzle/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/simpledommodel/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/simpletreemodel/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt | 4 ++++ examples/widgets/itemviews/spreadsheet/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/stardelegate/CMakeLists.txt | 4 ++++ examples/widgets/itemviews/storageview/CMakeLists.txt | 4 ++++ examples/widgets/layouts/basiclayouts/CMakeLists.txt | 4 ++++ examples/widgets/layouts/borderlayout/CMakeLists.txt | 4 ++++ examples/widgets/layouts/dynamiclayouts/CMakeLists.txt | 4 ++++ examples/widgets/layouts/flowlayout/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/application/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/dockwidgets/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/mainwindow/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/mdi/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/menus/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/sdi/CMakeLists.txt | 4 ++++ examples/widgets/painting/affine/.prev_CMakeLists.txt | 4 ++++ examples/widgets/painting/affine/CMakeLists.txt | 4 ++++ examples/widgets/painting/basicdrawing/CMakeLists.txt | 4 ++++ examples/widgets/painting/composition/.prev_CMakeLists.txt | 4 ++++ examples/widgets/painting/composition/CMakeLists.txt | 4 ++++ examples/widgets/painting/concentriccircles/CMakeLists.txt | 4 ++++ examples/widgets/painting/deform/.prev_CMakeLists.txt | 4 ++++ examples/widgets/painting/deform/CMakeLists.txt | 4 ++++ examples/widgets/painting/fontsampler/CMakeLists.txt | 4 ++++ examples/widgets/painting/gradients/.prev_CMakeLists.txt | 4 ++++ examples/widgets/painting/gradients/CMakeLists.txt | 4 ++++ examples/widgets/painting/imagecomposition/CMakeLists.txt | 4 ++++ examples/widgets/painting/painterpaths/CMakeLists.txt | 4 ++++ examples/widgets/painting/pathstroke/CMakeLists.txt | 4 ++++ examples/widgets/painting/transformations/CMakeLists.txt | 4 ++++ examples/widgets/richtext/calendar/CMakeLists.txt | 4 ++++ examples/widgets/richtext/orderform/CMakeLists.txt | 4 ++++ examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt | 4 ++++ examples/widgets/richtext/textedit/.prev_CMakeLists.txt | 4 ++++ examples/widgets/richtext/textedit/CMakeLists.txt | 4 ++++ examples/widgets/scroller/graphicsview/CMakeLists.txt | 4 ++++ examples/widgets/tools/completer/CMakeLists.txt | 4 ++++ examples/widgets/tools/customcompleter/CMakeLists.txt | 4 ++++ .../widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt | 4 ++++ examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt | 4 ++++ examples/widgets/tools/echoplugin/plugin/CMakeLists.txt | 4 ++++ examples/widgets/tools/i18n/CMakeLists.txt | 4 ++++ examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt | 4 ++++ examples/widgets/tools/plugandpaint/app/CMakeLists.txt | 4 ++++ .../tools/plugandpaint/plugins/basictools/CMakeLists.txt | 4 ++++ .../tools/plugandpaint/plugins/extrafilters/CMakeLists.txt | 4 ++++ examples/widgets/tools/regularexpression/CMakeLists.txt | 4 ++++ examples/widgets/tools/settingseditor/CMakeLists.txt | 4 ++++ examples/widgets/tools/styleplugin/plugin/CMakeLists.txt | 4 ++++ examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt | 4 ++++ examples/widgets/tools/treemodelcompleter/CMakeLists.txt | 4 ++++ examples/widgets/tools/undo/CMakeLists.txt | 4 ++++ examples/widgets/tools/undoframework/CMakeLists.txt | 4 ++++ examples/widgets/touch/dials/CMakeLists.txt | 4 ++++ examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt | 4 ++++ examples/widgets/touch/fingerpaint/CMakeLists.txt | 4 ++++ examples/widgets/touch/knobs/CMakeLists.txt | 4 ++++ examples/widgets/touch/pinchzoom/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part1/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part2/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part3/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part4/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part5/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part6/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/addressbook/part7/CMakeLists.txt | 4 ++++ .../widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt | 4 ++++ .../widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt | 4 ++++ .../widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt | 4 ++++ .../widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt | 4 ++++ .../widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt | 4 ++++ .../widgets/tutorials/modelview/2_formatting/CMakeLists.txt | 4 ++++ .../widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt | 4 ++++ .../widgets/tutorials/modelview/7_selections/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/notepad/.prev_CMakeLists.txt | 4 ++++ examples/widgets/tutorials/notepad/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt | 4 ++++ .../widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt | 4 ++++ examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt | 4 ++++ examples/widgets/widgets/analogclock/CMakeLists.txt | 4 ++++ examples/widgets/widgets/calculator/CMakeLists.txt | 4 ++++ examples/widgets/widgets/calendarwidget/CMakeLists.txt | 4 ++++ examples/widgets/widgets/charactermap/CMakeLists.txt | 4 ++++ examples/widgets/widgets/codeeditor/CMakeLists.txt | 4 ++++ examples/widgets/widgets/digitalclock/CMakeLists.txt | 4 ++++ examples/widgets/widgets/elidedlabel/CMakeLists.txt | 4 ++++ examples/widgets/widgets/groupbox/CMakeLists.txt | 4 ++++ examples/widgets/widgets/icons/.prev_CMakeLists.txt | 4 ++++ examples/widgets/widgets/icons/CMakeLists.txt | 4 ++++ examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt | 4 ++++ examples/widgets/widgets/imageviewer/CMakeLists.txt | 4 ++++ examples/widgets/widgets/lineedits/CMakeLists.txt | 4 ++++ examples/widgets/widgets/mousebuttons/CMakeLists.txt | 4 ++++ examples/widgets/widgets/movie/CMakeLists.txt | 4 ++++ examples/widgets/widgets/scribble/.prev_CMakeLists.txt | 4 ++++ examples/widgets/widgets/scribble/CMakeLists.txt | 4 ++++ examples/widgets/widgets/shapedclock/CMakeLists.txt | 4 ++++ examples/widgets/widgets/sliders/CMakeLists.txt | 4 ++++ examples/widgets/widgets/spinboxes/CMakeLists.txt | 4 ++++ examples/widgets/widgets/styles/CMakeLists.txt | 4 ++++ examples/widgets/widgets/stylesheet/CMakeLists.txt | 4 ++++ examples/widgets/widgets/tablet/CMakeLists.txt | 4 ++++ examples/widgets/widgets/tetrix/CMakeLists.txt | 4 ++++ examples/widgets/widgets/tooltips/CMakeLists.txt | 4 ++++ examples/widgets/widgets/validators/CMakeLists.txt | 4 ++++ examples/widgets/widgets/wiggly/CMakeLists.txt | 4 ++++ examples/widgets/widgets/windowflags/CMakeLists.txt | 4 ++++ examples/widgets/windowcontainer/CMakeLists.txt | 4 ++++ examples/xml/dombookmarks/CMakeLists.txt | 4 ++++ examples/xml/htmlinfo/CMakeLists.txt | 4 ++++ examples/xml/rsslisting/CMakeLists.txt | 4 ++++ examples/xml/streambookmarks/CMakeLists.txt | 4 ++++ examples/xml/xmlstreamlint/.prev_CMakeLists.txt | 4 ++++ examples/xml/xmlstreamlint/CMakeLists.txt | 4 ++++ 266 files changed, 1078 insertions(+) diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt index 837e686465..b01023b009 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 e459913c6f..86cd90a3cf 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 5205cc654b..74580e9472 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 d22ad9d812..977c072e00 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 7397d8c1b3..542c6f5ad0 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 8c2d4c0132..0f2897441a 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 68adf45209..b0b410bbc5 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 4147900226..96136522f7 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 62b1cd5e9a..93c26318f6 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 117f761fd5..f79e241fcc 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 0449e537c5..9581dd58e9 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 a8aef5f94b..7650bdd4ac 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 e36157e9f6..68c1784bde 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 0b1af630ae..1b67e23220 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 601c28429e..9396cce3ac 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 2ff002dd8d..998ffb5f25 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 414dbd8216..5cf1c2e9e3 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 ed3a55118f..a1907648b1 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 beea918511..41b8f1b058 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 001a82e720..86b3fb8e52 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 533881d140..e20f657a9a 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 f4f2443079..f1916c93f2 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 d27d428b07..f2433a43a2 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 d04ea3e37e..2f7de56f25 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 d77a31b55e..002ccf1198 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 bd6539a2f4..2021f5099f 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 bdb9ec4a33..a4546b8a39 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 69de5d29ff..f39466c89c 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 659c0a5f65..a224f504ca 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 1a0a5fdf97..90c6091d68 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 191facbc78..21a5fc239e 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 53269112f6..dddb5586db 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 26884471d1..845b52fc3e 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 9aed449b3b..44a4a68e39 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 d24bcdf304..ecc322d86a 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 a7e243ad58..4c371d6494 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 5426aca565..5e68adb224 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 4c05703be5..36bdfdc5fd 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 d5e065dd8d..a3698a016f 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 27a41dacc9..4c80076d0d 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 3147d9aeab..f1a668cf88 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 2f8d244c7b..ade5b85f2d 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 77bcbe675b..b967881c6a 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 d41fd0e83b..eb0c13e230 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 6ae83f8ab2..c3f7837f94 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 572d48f664..2ff038e269 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 258e244856..f060c06b39 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 c640750276..8273e2b029 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 0b317278cd..923ddec185 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 8b2e3888c2..3af7260c47 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 9168798e20..cd88d630df 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 3a21910c99..c93f8d0139 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 45940baad8..12cb2f6610 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 9411bdc1d4..bc3bf6a465 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 0766d208b7..7eea3d02bc 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 675a254070..5978f6a283 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 1e9ac0ce1c..d86579d961 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 4e444ee60c..81daeedc5f 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 cd247f01ce..da7db67ef9 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 c5bbb54fc6..dcf66be4b9 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 a7c36e6419..b26dfe059f 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 293b46ec57..cd77a5b765 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 816aa87a4d..d0a825aafc 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 2752ed40c0..496cc52b6f 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 055ea904f5..c5ca16a33b 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 969b9d7e0c..93909b516e 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 502ac9cef1..64ae075ce0 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 60f121abf5..dc5bdb85c1 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 0352c464f7..94af7b6de5 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 5013769f54..e644be537c 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 8956f8a2a1..b1065e877b 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 5ab5b093a4..0e3215c225 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 3a977eeaaf..08589f1b3f 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 d91ba64b91..00dd8215ef 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 ffd5b904c9..d1f0321648 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 b3636fca76..10e09bf0f6 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 c37bf3a46e..36664d3b99 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 104578bfb9..781a910c38 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 90c79818d0..0ebdb5a81c 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 9a3cc59876..7238f31fab 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 d967eb2382..1cf7085085 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 3787ee758b..7595f3fd82 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 4806ef2196..7c5af62005 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 b27e6c4052..ace085e6ac 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 8a9a6c4d7d..1a66c81b9c 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 877ccabf60..8320ac917d 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 a0a7ca4d03..63557fba88 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 f027e6fdbf..260288b9c0 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 95d3e4c7e7..24b563a2a3 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 4136592493..7dd042adb7 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 01a1e32557..4248375ba0 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 25cf1ae484..d805f3cb45 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 c6db88838f..3993e931ef 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 72ac084900..cecb3a3e52 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 e5f5fea35a..5e9d789ddf 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 107cae5a09..7e36ed78c4 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 979dee6ca7..2dc1b9909e 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 7c813a8667..e1d1ca526b 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 ebbc8d0652..5134db62be 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 a1f42276da..37d75d2cc1 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 870a9d8409..1d60d743f2 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 b26c8aafd7..df0b205cab 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 74fca2a343..b42e3a81c7 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 a93563ef9c..8e8ad4213a 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 684981d16e..4c67d8cdb6 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 938365315c..894f8ba520 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 8ce6a2444a..d2da6acddb 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 a139add5b2..aac6d005b7 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 bf0969b4b4..3f8b9108ae 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 cad4c02602..bcc7708662 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 a8f319b6bd..b7569fb0d2 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 1a684b0e7d..f24fa685c0 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 1b1b2ebb10..2de3b9b131 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 156e61a18b..f3afe22109 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 eeb4bc511c..994fba8c04 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 a6d5aaf9d7..9d500bace4 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 3f96953aba..a699a75a87 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 d03c78fc70..1140aeb969 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 3a892dca26..cb3e95a43c 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 b50e941c35..6b13244042 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 4923c76ab7..89bcc6f4cb 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 0335ad4f2d..9cf79ba53e 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 efb4d986bd..c25df365fb 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 316da4cd90..5f69077802 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 82b8bee4c7..4208ba303e 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 368342f09c..4062c1d902 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 73e9d2be8e..8403fb0a0a 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 e39bb95b8c..43bd29452e 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 54bc195588..0383a1edf8 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 55ce6024eb..cd70de6907 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 533b6d2813..c0a9d66099 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 f974f88064..478c61dec7 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 eab91ce57a..b239e434e2 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 9ad909f57c..9b20b76a9a 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 b99242bc2e..27ce1bc144 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 bd0a487d8f..6ef311d960 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 2a0df1dcce..35ddc52aab 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 88d881c223..893f19d4ba 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 e824e8c4b2..d27dc6e88b 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 5ed6aa998f..7c4e6a4fe7 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 68b90cffda..2beeba0939 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 87d5b9258e..10a89e4343 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 90190126e7..b80cb9c29b 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 03ece14a1e..bfc597f2da 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 25c7200a54..4381e6ad1a 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 73754e4474..0fd9ebc9df 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 c174fc65fa..aae13df180 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 f682a5fa9a..88bfd6b9c3 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 9f68485e2c..e14931e62f 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 54de00fe28..a5a9a52574 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 1b7d12c25e..947fdb96a7 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 bada4f175c..173aa7ca89 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 b82cb71183..fdfc452e19 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 7459228ce7..7ea6a0496e 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 2c27f31b7c..3bfa44da47 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 3c1973886a..deafab4d80 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 7142f3d8e5..53354d0460 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 8ba50928cf..2affbef3b9 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 4d92f80a48..308960e547 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 e692d48f4a..88d1c7ddf7 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 270f9f02ac..1c9aac9a33 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 7a37a69ec6..ba32b3086a 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 84622b4062..111b127e38 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 6f9cd7c61a..d367ef75bd 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 73115feb9b..c1ee72d15b 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 8b65526457..b36f44f8ba 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 244066db4e..5e3cb8c10c 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 252f48bc49..6d12f8a899 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 3458fd52f7..e75da10aff 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 fb803670c1..4462680de7 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 d53f19edc6..61b28f1b3a 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 487152d1ed..d3a7680bdc 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 5cb7e5b745..7e798d032e 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 60da6b6e0f..0570ccfa37 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 79c0fdd27b..d90958d77b 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 6c867d5edb..4b4b36fa08 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 bf54a9bd6c..22a6635164 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 a885d76285..c0ca191c8a 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 dbab2e2fe4..d8ef569f5f 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 d68274edef..d1538778cc 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 6139f73f54..5bdc9f7981 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 14152519c1..97fde062dd 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 4bef3d69f6..a376f9f747 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 afe934837a..cf1349f110 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 512d7a3864..a04d25f045 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 0c17aaaaf1..13dd1123eb 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 6bba4b9f77..1262ce5452 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 4ddd0bc4d7..3814fb235d 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 1ca49a1aca..3e605cd2c9 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 361453c8ad..7579853312 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 db70d80ad6..feaac7ad8f 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 da4c568dc6..bdf934fa2c 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 8baeb5357d..97e4021d61 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 1c2d500497..bb6948e610 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 7ffda47adb..c0dbf8e24e 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 eda21b71e2..b875192bbb 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 84266d0068..d3899bc0f4 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 d018ec0207..5d692b0564 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 7cefcd5ea5..34d1d996ed 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 70e38a8866..8156e12bcd 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 a4a91ae7c4..9286f83ddb 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 d779ed657c..81a4878c80 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 2bd6de1ae0..3077bf5bc6 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 40c38c14a5..9f677d7467 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 dcf612d5ff..08dfb0a78a 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 d68559ff9b..6288301683 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 38a6c23390..264b22e259 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 a29d4fdd02..8e5e446802 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 24fd5ac315..3cf1f5c49f 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 29115c8667..0497353753 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 1176f88774..d3ac961064 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 214bd2eeb2..a3dd87619a 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 ba349acba6..88b5ca3a1e 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 86dde1ee5c..e2877a26ba 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 fb1cfc547e..65a3ff3539 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 ef1a9d8cd0..4a9b79b00b 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 b7cd3a7d0e..b1b224c70d 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 7f8f3eb0f3..182c2e9a48 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 857e8a0582..a9aa027352 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 04871d4043..d17ac4f413 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 cd558a0b88..02305a8140 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 f317888cf7..1ff44691a1 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 2a6b68e1c4..bcb0f06714 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 701d766322..d020349fa5 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 15033ccf0a..776b8d7688 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 120cc3ba7a..119ca9d6cf 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 9a683791a4..267c3583b7 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 dbf9b3f44e..c5852850ae 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 4824d9a083..b7aca1b946 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 d1e30f7879..35296c8621 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 918f66b09e..71f848d387 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 82d953e03c..50dc07919c 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 46471582ac..5f961e350d 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 978deb93e4..74c342ab73 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 c4d345773c..07791589c1 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 358f57af9b..58665eca3c 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 462b8004b3..5cff6b456f 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 132e13784e..338a6cfefe 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 e647311b3b..74f2fe037f 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 98cb1d1c14..ff25b3eaef 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 a3342d02fe..e14272e777 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 e44087fe75..9603f8dcbd 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 c68a541ed3..a52bc5fb34 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 5a61458607..9e219e1038 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 c623111d51..6a8a365d33 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 d56b77be8b..a990a98f48 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 5b3e6b01cf..2ce40dc8cb 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 a2f774caa8..dc7f0f56bb 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 2d4839e8d2..de91c6410c 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 6b3014159e..07dd0c0326 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 32a48c5f58..ade330faf2 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 0cf487df82..c847af915c 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 40c915ac14..ccfb15f68c 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 6b30e0dfab..c411cc4fef 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 3de565dd23..58237e2962 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 393657dc3c..bde6e4fc27 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 93c3af5c23..d5ea9b833e 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 a1a1ea5b05..daf816d46e 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 7d25bdad45..93ab0d9dbf 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 d27691b572..8348694666 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 e3de1fd26d..11e3fcc5e4 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 d4676de324..1afb256ff2 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 caa4738f6e..9ee2c69c54 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 6a6de031e5..51393a2727 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 215cc83f6e..23d62e7b1c 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 0642344892..8f3a02826b 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 -- cgit v1.2.3