summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/animation/easing/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/classwizard/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/extension/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/findfiles/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/licensewizard/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/standarddialogs/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/tabdialog/CMakeLists.txt4
-rw-r--r--examples/widgets/dialogs/trivialwizard/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/draggableicons/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/draggabletext/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/dropsite/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/draganddrop/puzzle/CMakeLists.txt4
-rw-r--r--examples/widgets/effects/blurpicker/CMakeLists.txt4
-rw-r--r--examples/widgets/effects/fademessage/CMakeLists.txt4
-rw-r--r--examples/widgets/gallery/CMakeLists.txt4
-rw-r--r--examples/widgets/gestures/imagegestures/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/anchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/chip/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/chip/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/collidingmice/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/diagramscene/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/elasticnodes/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/flowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/addressbook/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/chart/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/dirview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/editabletreemodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/fetchmore/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/flattreeview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/frozencolumn/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/interview/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/pixelator/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/puzzle/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simpledommodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simpletreemodel/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/spreadsheet/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/stardelegate/CMakeLists.txt4
-rw-r--r--examples/widgets/itemviews/storageview/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/basiclayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/borderlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/dynamiclayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/layouts/flowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/application/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/dockwidgets/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/mainwindow/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/mdi/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/menus/CMakeLists.txt4
-rw-r--r--examples/widgets/mainwindows/sdi/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/affine/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/affine/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/basicdrawing/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/composition/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/composition/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/concentriccircles/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/deform/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/deform/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/fontsampler/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/gradients/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/painting/gradients/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/imagecomposition/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/painterpaths/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/pathstroke/CMakeLists.txt4
-rw-r--r--examples/widgets/painting/transformations/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/calendar/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/orderform/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/textedit/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/richtext/textedit/CMakeLists.txt4
-rw-r--r--examples/widgets/scroller/graphicsview/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/completer/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/customcompleter/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/echoplugin/plugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/i18n/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/basictools/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/plugandpaint/plugins/extrafilters/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/regularexpression/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/settingseditor/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/styleplugin/plugin/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/treemodelcompleter/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/undo/CMakeLists.txt4
-rw-r--r--examples/widgets/tools/undoframework/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/dials/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/touch/fingerpaint/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/knobs/CMakeLists.txt4
-rw-r--r--examples/widgets/touch/pinchzoom/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part1/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part2/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part3/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part4/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part5/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part6/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/addressbook/part7/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/notepad/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/notepad/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt4
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/analogclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/calculator/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/calendarwidget/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/charactermap/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/codeeditor/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/digitalclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/elidedlabel/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/groupbox/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/icons/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/icons/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/imageviewer/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/lineedits/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/mousebuttons/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/movie/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/scribble/.prev_CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/scribble/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/shapedclock/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/sliders/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/spinboxes/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/styles/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/stylesheet/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tablet/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tetrix/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/tooltips/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/validators/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/wiggly/CMakeLists.txt4
-rw-r--r--examples/widgets/widgets/windowflags/CMakeLists.txt4
-rw-r--r--examples/widgets/windowcontainer/CMakeLists.txt4
165 files changed, 660 insertions, 0 deletions
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
)