summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 17:09:47 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 23:38:39 +0100
commit20d5e2d7efd458671e2830e94cd8bc30e14361e5 (patch)
treeb0cfe10bb101ee56eb1c2c4d0750fc33819aa324 /examples
parent880b937b6c67df35eea46cec9f4580dc79e21a99 (diff)
CMake: Regenerate examples to set the WIN32_EXECUTABLE property
As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Task-number: QTBUG-86827 Change-Id: I46769fb543acb2cbeba122470b5e44ad478fbe4e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/qml/networkaccessmanagerfactory/CMakeLists.txt4
-rw-r--r--examples/qml/qmlextensionplugins/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/adding/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/attached/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/binding/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/coercion/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/default/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/extended/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/grouped/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/methods/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/properties/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/signal/CMakeLists.txt4
-rw-r--r--examples/qml/referenceexamples/valuesource/CMakeLists.txt4
-rw-r--r--examples/qml/shell/CMakeLists.txt16
-rw-r--r--examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt4
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt4
-rw-r--r--examples/qml/xmlhttprequest/CMakeLists.txt4
-rw-r--r--examples/qmltest/qmltest/.prev_CMakeLists.txt10
-rw-r--r--examples/qmltest/qmltest/CMakeLists.txt10
-rw-r--r--examples/quick/animation/CMakeLists.txt4
-rw-r--r--examples/quick/canvas/CMakeLists.txt4
-rw-r--r--examples/quick/customitems/dialcontrol/CMakeLists.txt4
-rw-r--r--examples/quick/customitems/maskedmousearea/CMakeLists.txt4
-rw-r--r--examples/quick/customitems/painteditem/CMakeLists.txt4
-rw-r--r--examples/quick/delegatechooser/CMakeLists.txt4
-rw-r--r--examples/quick/draganddrop/CMakeLists.txt4
-rw-r--r--examples/quick/embeddedinwidgets/CMakeLists.txt4
-rw-r--r--examples/quick/externaldraganddrop/CMakeLists.txt4
-rw-r--r--examples/quick/imageelements/CMakeLists.txt4
-rw-r--r--examples/quick/imageprovider/CMakeLists.txt4
-rw-r--r--examples/quick/imageresponseprovider/CMakeLists.txt4
-rw-r--r--examples/quick/keyinteraction/CMakeLists.txt4
-rw-r--r--examples/quick/layouts/CMakeLists.txt4
-rw-r--r--examples/quick/localstorage/localstorage/CMakeLists.txt4
-rw-r--r--examples/quick/models/abstractitemmodel/CMakeLists.txt4
-rw-r--r--examples/quick/models/objectlistmodel/CMakeLists.txt4
-rw-r--r--examples/quick/models/stringlistmodel/CMakeLists.txt4
-rw-r--r--examples/quick/mousearea/CMakeLists.txt4
-rw-r--r--examples/quick/particles/affectors/CMakeLists.txt4
-rw-r--r--examples/quick/particles/emitters/CMakeLists.txt4
-rw-r--r--examples/quick/particles/imageparticle/CMakeLists.txt4
-rw-r--r--examples/quick/particles/itemparticle/CMakeLists.txt4
-rw-r--r--examples/quick/particles/system/CMakeLists.txt4
-rw-r--r--examples/quick/positioners/CMakeLists.txt4
-rw-r--r--examples/quick/quick-accessibility/CMakeLists.txt4
-rw-r--r--examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt4
-rw-r--r--examples/quick/quickwidgets/quickwidget/CMakeLists.txt4
-rw-r--r--examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt4
-rw-r--r--examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt4
-rw-r--r--examples/quick/righttoleft/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/customgeometry/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/custommaterial/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/d3d11underqml/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/fboitem/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/graph/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/metaltextureimport/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/metalunderqml/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/openglunderqml/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/threadedanimation/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/twotextureproviders/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt4
-rw-r--r--examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt4
-rw-r--r--examples/quick/shadereffects/CMakeLists.txt4
-rw-r--r--examples/quick/shapes/CMakeLists.txt4
-rw-r--r--examples/quick/tableview/gameoflife/CMakeLists.txt4
-rw-r--r--examples/quick/tableview/pixelator/CMakeLists.txt4
-rw-r--r--examples/quick/text/CMakeLists.txt4
-rw-r--r--examples/quick/threading/CMakeLists.txt4
-rw-r--r--examples/quick/touchinteraction/CMakeLists.txt4
-rw-r--r--examples/quick/views/CMakeLists.txt4
-rw-r--r--examples/quick/window/CMakeLists.txt4
79 files changed, 340 insertions, 0 deletions
diff --git a/examples/qml/networkaccessmanagerfactory/CMakeLists.txt b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt
index 561866bbec..11a88738ab 100644
--- a/examples/qml/networkaccessmanagerfactory/CMakeLists.txt
+++ b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt
@@ -24,6 +24,10 @@ find_package(Qt6 COMPONENTS Network)
qt_add_executable(networkaccessmanagerfactory
main.cpp
)
+set_target_properties(networkaccessmanagerfactory PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(networkaccessmanagerfactory PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/qmlextensionplugins/CMakeLists.txt b/examples/qml/qmlextensionplugins/CMakeLists.txt
index de6f9c4685..7fc2b7268f 100644
--- a/examples/qml/qmlextensionplugins/CMakeLists.txt
+++ b/examples/qml/qmlextensionplugins/CMakeLists.txt
@@ -30,6 +30,10 @@ target_sources(qmlqtimeexampleplugin PRIVATE
plugin.cpp
timemodel.cpp timemodel.h
)
+set_target_properties(qmlqtimeexampleplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qmlqtimeexampleplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/adding/CMakeLists.txt b/examples/qml/referenceexamples/adding/CMakeLists.txt
index 47c7e1025d..9e04f3799a 100644
--- a/examples/qml/referenceexamples/adding/CMakeLists.txt
+++ b/examples/qml/referenceexamples/adding/CMakeLists.txt
@@ -22,6 +22,10 @@ qt_add_executable(adding
main.cpp
person.cpp person.h
)
+set_target_properties(adding PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(adding PUBLIC
Qt::Core
Qt::Qml
diff --git a/examples/qml/referenceexamples/attached/CMakeLists.txt b/examples/qml/referenceexamples/attached/CMakeLists.txt
index 2cf6c881e8..10aa52293c 100644
--- a/examples/qml/referenceexamples/attached/CMakeLists.txt
+++ b/examples/qml/referenceexamples/attached/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(attached
main.cpp
person.cpp person.h
)
+set_target_properties(attached PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(attached PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/binding/CMakeLists.txt b/examples/qml/referenceexamples/binding/CMakeLists.txt
index 87b95b4d37..f64c24803c 100644
--- a/examples/qml/referenceexamples/binding/CMakeLists.txt
+++ b/examples/qml/referenceexamples/binding/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(binding
main.cpp
person.cpp person.h
)
+set_target_properties(binding PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(binding PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/coercion/CMakeLists.txt b/examples/qml/referenceexamples/coercion/CMakeLists.txt
index abdfe70b5d..3160b92782 100644
--- a/examples/qml/referenceexamples/coercion/CMakeLists.txt
+++ b/examples/qml/referenceexamples/coercion/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(coercion
main.cpp
person.cpp person.h
)
+set_target_properties(coercion PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(coercion PUBLIC
Qt::Core
Qt::Qml
diff --git a/examples/qml/referenceexamples/default/CMakeLists.txt b/examples/qml/referenceexamples/default/CMakeLists.txt
index bdd6f76c7d..6e207f3641 100644
--- a/examples/qml/referenceexamples/default/CMakeLists.txt
+++ b/examples/qml/referenceexamples/default/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(default
main.cpp
person.cpp person.h
)
+set_target_properties(default PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(default PUBLIC
Qt::Core
Qt::Qml
diff --git a/examples/qml/referenceexamples/extended/CMakeLists.txt b/examples/qml/referenceexamples/extended/CMakeLists.txt
index f2b99ec2c0..6843b39d38 100644
--- a/examples/qml/referenceexamples/extended/CMakeLists.txt
+++ b/examples/qml/referenceexamples/extended/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(extended
lineedit.cpp lineedit.h
main.cpp
)
+set_target_properties(extended PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(extended PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/grouped/CMakeLists.txt b/examples/qml/referenceexamples/grouped/CMakeLists.txt
index e8eec7acc8..19dd60358b 100644
--- a/examples/qml/referenceexamples/grouped/CMakeLists.txt
+++ b/examples/qml/referenceexamples/grouped/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(grouped
main.cpp
person.cpp person.h
)
+set_target_properties(grouped PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(grouped PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/methods/CMakeLists.txt b/examples/qml/referenceexamples/methods/CMakeLists.txt
index e1eca9df13..886928e10e 100644
--- a/examples/qml/referenceexamples/methods/CMakeLists.txt
+++ b/examples/qml/referenceexamples/methods/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(methods
main.cpp
person.cpp person.h
)
+set_target_properties(methods PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(methods PUBLIC
Qt::Core
Qt::Qml
diff --git a/examples/qml/referenceexamples/properties/CMakeLists.txt b/examples/qml/referenceexamples/properties/CMakeLists.txt
index e20d68fd48..1d4daf56d6 100644
--- a/examples/qml/referenceexamples/properties/CMakeLists.txt
+++ b/examples/qml/referenceexamples/properties/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(properties
main.cpp
person.cpp person.h
)
+set_target_properties(properties PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(properties PUBLIC
Qt::Core
Qt::Qml
diff --git a/examples/qml/referenceexamples/signal/CMakeLists.txt b/examples/qml/referenceexamples/signal/CMakeLists.txt
index 335741ebed..b309efc576 100644
--- a/examples/qml/referenceexamples/signal/CMakeLists.txt
+++ b/examples/qml/referenceexamples/signal/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(signal
main.cpp
person.cpp person.h
)
+set_target_properties(signal PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(signal PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/referenceexamples/valuesource/CMakeLists.txt b/examples/qml/referenceexamples/valuesource/CMakeLists.txt
index e2cf1f58cc..9bdf9fc309 100644
--- a/examples/qml/referenceexamples/valuesource/CMakeLists.txt
+++ b/examples/qml/referenceexamples/valuesource/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(valuesource
main.cpp
person.cpp person.h
)
+set_target_properties(valuesource PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(valuesource PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/shell/CMakeLists.txt b/examples/qml/shell/CMakeLists.txt
index 5f646ac46e..6c986b7778 100644
--- a/examples/qml/shell/CMakeLists.txt
+++ b/examples/qml/shell/CMakeLists.txt
@@ -21,11 +21,27 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(shell
main.cpp
)
+set_target_properties(shell PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(shell PUBLIC
Qt::Core
Qt::Qml
)
+if(WIN32)
+ set_target_properties(shell PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ )
+endif()
+
+if(APPLE)
+ set_target_properties(shell PROPERTIES
+ MACOSX_BUNDLE FALSE
+ )
+endif()
+
install(TARGETS shell
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
index 80b01a31d0..7e1f1887c4 100644
--- a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(chapter1-basics
main.cpp
piechart.cpp piechart.h
)
+set_target_properties(chapter1-basics PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter1-basics PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
index e3ac7eeff5..456c3965eb 100644
--- a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(chapter2-methods
main.cpp
piechart.cpp piechart.h
)
+set_target_properties(chapter2-methods PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter2-methods PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
index 6c9f0b7e78..6b81e93dff 100644
--- a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(chapter3-bindings
main.cpp
piechart.cpp piechart.h
)
+set_target_properties(chapter3-bindings PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter3-bindings PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
index cbf4067a3e..55fb20ea41 100644
--- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(chapter4-customPropertyTypes
piechart.cpp piechart.h
pieslice.cpp pieslice.h
)
+set_target_properties(chapter4-customPropertyTypes PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter4-customPropertyTypes PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
index e3a7593f2f..f41a349eac 100644
--- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(chapter5-listproperties
piechart.cpp piechart.h
pieslice.cpp pieslice.h
)
+set_target_properties(chapter5-listproperties PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter5-listproperties PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt
index 3a7face697..0d68df497a 100644
--- a/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(chapter6-plugins
main.cpp
)
+set_target_properties(chapter6-plugins PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter6-plugins PUBLIC
Qt::Qml
Qt::Quick
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
index 941e68344d..1c19c84caa 100644
--- a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(chapter6-plugins
main.cpp
)
+set_target_properties(chapter6-plugins PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter6-plugins PUBLIC
Qt::Qml
Qt::Quick
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt
index 8031a1b5de..ad3a5972e8 100644
--- a/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt
@@ -32,6 +32,10 @@ target_sources(chartsplugin PRIVATE
piechart.cpp piechart.h
pieslice.cpp pieslice.h
)
+set_target_properties(chartsplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chartsplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qml/xmlhttprequest/CMakeLists.txt b/examples/qml/xmlhttprequest/CMakeLists.txt
index 7b6529d761..235c14325f 100644
--- a/examples/qml/xmlhttprequest/CMakeLists.txt
+++ b/examples/qml/xmlhttprequest/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(xmlhttprequest
main.cpp
)
+set_target_properties(xmlhttprequest PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(xmlhttprequest PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/qmltest/qmltest/.prev_CMakeLists.txt b/examples/qmltest/qmltest/.prev_CMakeLists.txt
index 364e661910..c50eb7bcd3 100644
--- a/examples/qmltest/qmltest/.prev_CMakeLists.txt
+++ b/examples/qmltest/qmltest/.prev_CMakeLists.txt
@@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Gui)
qt_add_executable(tst_qmltestexample
tst_qmltest.cpp
)
+set_target_properties(tst_qmltestexample PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tst_qmltestexample PUBLIC
Qt::Core
Qt::Gui
@@ -33,6 +37,12 @@ if(QT_BUILDING_QT)
)
endif()
+if(MACOS AND QT_BUILDING_QT)
+ set_target_properties(tst_qmltestexample PROPERTIES
+ MACOSX_BUNDLE FALSE
+ )
+endif()
+
install(TARGETS tst_qmltestexample
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/qmltest/qmltest/CMakeLists.txt b/examples/qmltest/qmltest/CMakeLists.txt
index 113b31bfa5..c8a8361578 100644
--- a/examples/qmltest/qmltest/CMakeLists.txt
+++ b/examples/qmltest/qmltest/CMakeLists.txt
@@ -24,6 +24,10 @@ find_package(Qt6 COMPONENTS QuickTest)
qt_add_executable(tst_qmltestexample
tst_qmltest.cpp
)
+set_target_properties(tst_qmltestexample PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(tst_qmltestexample PUBLIC
Qt::Core
Qt::Gui
@@ -42,6 +46,12 @@ target_link_libraries(tst_qmltestexample PUBLIC
#endif()
# special case end
+if(MACOS AND QT_BUILDING_QT)
+ set_target_properties(tst_qmltestexample PROPERTIES
+ MACOSX_BUNDLE FALSE
+ )
+endif()
+
install(TARGETS tst_qmltestexample
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/quick/animation/CMakeLists.txt b/examples/quick/animation/CMakeLists.txt
index 54913733a8..4352823374 100644
--- a/examples/quick/animation/CMakeLists.txt
+++ b/examples/quick/animation/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(animation
main.cpp
)
+set_target_properties(animation PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(animation PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/canvas/CMakeLists.txt b/examples/quick/canvas/CMakeLists.txt
index cc4911bd3b..ef978ee80b 100644
--- a/examples/quick/canvas/CMakeLists.txt
+++ b/examples/quick/canvas/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(canvas
main.cpp
)
+set_target_properties(canvas PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(canvas PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/customitems/dialcontrol/CMakeLists.txt b/examples/quick/customitems/dialcontrol/CMakeLists.txt
index 755110da9c..9d2fa2818a 100644
--- a/examples/quick/customitems/dialcontrol/CMakeLists.txt
+++ b/examples/quick/customitems/dialcontrol/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(dialcontrol
main.cpp
)
+set_target_properties(dialcontrol PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(dialcontrol PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/customitems/maskedmousearea/CMakeLists.txt b/examples/quick/customitems/maskedmousearea/CMakeLists.txt
index fb3ece011a..0c5a19b5e7 100644
--- a/examples/quick/customitems/maskedmousearea/CMakeLists.txt
+++ b/examples/quick/customitems/maskedmousearea/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(maskedmousearea
main.cpp
maskedmousearea.cpp maskedmousearea.h
)
+set_target_properties(maskedmousearea PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(maskedmousearea PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/customitems/painteditem/CMakeLists.txt b/examples/quick/customitems/painteditem/CMakeLists.txt
index 558a0fb716..533396a7cd 100644
--- a/examples/quick/customitems/painteditem/CMakeLists.txt
+++ b/examples/quick/customitems/painteditem/CMakeLists.txt
@@ -31,6 +31,10 @@ target_sources(qmltextballoonplugin PRIVATE
TextBalloonPlugin/plugin.h
textballoon.cpp textballoon.h
)
+set_target_properties(qmltextballoonplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qmltextballoonplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/delegatechooser/CMakeLists.txt b/examples/quick/delegatechooser/CMakeLists.txt
index 1e51098c98..dc45ad5c3c 100644
--- a/examples/quick/delegatechooser/CMakeLists.txt
+++ b/examples/quick/delegatechooser/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(delegatechooser
main.cpp
)
+set_target_properties(delegatechooser PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(delegatechooser PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/draganddrop/CMakeLists.txt b/examples/quick/draganddrop/CMakeLists.txt
index ff910754bb..fe0107938a 100644
--- a/examples/quick/draganddrop/CMakeLists.txt
+++ b/examples/quick/draganddrop/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(draganddrop
main.cpp
)
+set_target_properties(draganddrop PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(draganddrop PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/embeddedinwidgets/CMakeLists.txt b/examples/quick/embeddedinwidgets/CMakeLists.txt
index c7e0a49293..4862e58f5c 100644
--- a/examples/quick/embeddedinwidgets/CMakeLists.txt
+++ b/examples/quick/embeddedinwidgets/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(embeddedinwidgets
main.cpp
)
+set_target_properties(embeddedinwidgets PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(embeddedinwidgets PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/externaldraganddrop/CMakeLists.txt b/examples/quick/externaldraganddrop/CMakeLists.txt
index aadbaf1f28..2f801b3045 100644
--- a/examples/quick/externaldraganddrop/CMakeLists.txt
+++ b/examples/quick/externaldraganddrop/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(externaldraganddrop
main.cpp
)
+set_target_properties(externaldraganddrop PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(externaldraganddrop PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/imageelements/CMakeLists.txt b/examples/quick/imageelements/CMakeLists.txt
index eaa683ecf1..ea354c3305 100644
--- a/examples/quick/imageelements/CMakeLists.txt
+++ b/examples/quick/imageelements/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(imageelements
main.cpp
)
+set_target_properties(imageelements PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imageelements PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/imageprovider/CMakeLists.txt b/examples/quick/imageprovider/CMakeLists.txt
index a62585a84c..e3318b0755 100644
--- a/examples/quick/imageprovider/CMakeLists.txt
+++ b/examples/quick/imageprovider/CMakeLists.txt
@@ -30,6 +30,10 @@ qt6_add_qml_module(qmlimageproviderplugin
target_sources(qmlimageproviderplugin PRIVATE
imageprovider.cpp
)
+set_target_properties(qmlimageproviderplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qmlimageproviderplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/imageresponseprovider/CMakeLists.txt b/examples/quick/imageresponseprovider/CMakeLists.txt
index 328dc321f1..5f282a0fb9 100644
--- a/examples/quick/imageresponseprovider/CMakeLists.txt
+++ b/examples/quick/imageresponseprovider/CMakeLists.txt
@@ -30,6 +30,10 @@ qt6_add_qml_module(qmlimageresponseproviderplugin
target_sources(qmlimageresponseproviderplugin PRIVATE
imageresponseprovider.cpp
)
+set_target_properties(qmlimageresponseproviderplugin PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qmlimageresponseproviderplugin PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/keyinteraction/CMakeLists.txt b/examples/quick/keyinteraction/CMakeLists.txt
index b726ffc4b2..b62d6754d3 100644
--- a/examples/quick/keyinteraction/CMakeLists.txt
+++ b/examples/quick/keyinteraction/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(keyinteraction
main.cpp
)
+set_target_properties(keyinteraction PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(keyinteraction PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/layouts/CMakeLists.txt b/examples/quick/layouts/CMakeLists.txt
index a04ac4cbf7..e87ef25e92 100644
--- a/examples/quick/layouts/CMakeLists.txt
+++ b/examples/quick/layouts/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(layouts
main.cpp
)
+set_target_properties(layouts PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(layouts PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/localstorage/localstorage/CMakeLists.txt b/examples/quick/localstorage/localstorage/CMakeLists.txt
index 5bf8b1dac1..db32a5e2eb 100644
--- a/examples/quick/localstorage/localstorage/CMakeLists.txt
+++ b/examples/quick/localstorage/localstorage/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(localstorage
main.cpp
)
+set_target_properties(localstorage PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(localstorage PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/models/abstractitemmodel/CMakeLists.txt b/examples/quick/models/abstractitemmodel/CMakeLists.txt
index 1e67db9295..992fdd0f8a 100644
--- a/examples/quick/models/abstractitemmodel/CMakeLists.txt
+++ b/examples/quick/models/abstractitemmodel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(abstractitemmodel
main.cpp
model.cpp model.h
)
+set_target_properties(abstractitemmodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(abstractitemmodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/models/objectlistmodel/CMakeLists.txt b/examples/quick/models/objectlistmodel/CMakeLists.txt
index acc38f8545..23b4cf7ed5 100644
--- a/examples/quick/models/objectlistmodel/CMakeLists.txt
+++ b/examples/quick/models/objectlistmodel/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(objectlistmodel
dataobject.cpp dataobject.h
main.cpp
)
+set_target_properties(objectlistmodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(objectlistmodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/models/stringlistmodel/CMakeLists.txt b/examples/quick/models/stringlistmodel/CMakeLists.txt
index 92842da4a5..acf6be6981 100644
--- a/examples/quick/models/stringlistmodel/CMakeLists.txt
+++ b/examples/quick/models/stringlistmodel/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(stringlistmodel
main.cpp
)
+set_target_properties(stringlistmodel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(stringlistmodel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/mousearea/CMakeLists.txt b/examples/quick/mousearea/CMakeLists.txt
index bd62c0e60e..941f02b613 100644
--- a/examples/quick/mousearea/CMakeLists.txt
+++ b/examples/quick/mousearea/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(mousearea
main.cpp
)
+set_target_properties(mousearea PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(mousearea PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/particles/affectors/CMakeLists.txt b/examples/quick/particles/affectors/CMakeLists.txt
index b4d77b9cc4..1e65a15d2e 100644
--- a/examples/quick/particles/affectors/CMakeLists.txt
+++ b/examples/quick/particles/affectors/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(affectors
main.cpp
)
+set_target_properties(affectors PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(affectors PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/particles/emitters/CMakeLists.txt b/examples/quick/particles/emitters/CMakeLists.txt
index 6fb90d54f2..a6ca0875ce 100644
--- a/examples/quick/particles/emitters/CMakeLists.txt
+++ b/examples/quick/particles/emitters/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(emitters
main.cpp
)
+set_target_properties(emitters PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(emitters PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/particles/imageparticle/CMakeLists.txt b/examples/quick/particles/imageparticle/CMakeLists.txt
index 0a9d9b2af0..29bddbb0db 100644
--- a/examples/quick/particles/imageparticle/CMakeLists.txt
+++ b/examples/quick/particles/imageparticle/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(imageparticle
main.cpp
)
+set_target_properties(imageparticle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(imageparticle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/particles/itemparticle/CMakeLists.txt b/examples/quick/particles/itemparticle/CMakeLists.txt
index 0f0d5b181e..bb88ffb633 100644
--- a/examples/quick/particles/itemparticle/CMakeLists.txt
+++ b/examples/quick/particles/itemparticle/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(itemparticle
main.cpp
)
+set_target_properties(itemparticle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(itemparticle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/particles/system/CMakeLists.txt b/examples/quick/particles/system/CMakeLists.txt
index 5071830e21..737dc5f90b 100644
--- a/examples/quick/particles/system/CMakeLists.txt
+++ b/examples/quick/particles/system/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(system
main.cpp
)
+set_target_properties(system PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(system PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/positioners/CMakeLists.txt b/examples/quick/positioners/CMakeLists.txt
index 2b0bf2a2c3..07205cbfa5 100644
--- a/examples/quick/positioners/CMakeLists.txt
+++ b/examples/quick/positioners/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(positioners
main.cpp
)
+set_target_properties(positioners PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(positioners PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/quick-accessibility/CMakeLists.txt b/examples/quick/quick-accessibility/CMakeLists.txt
index 379c72a6e7..ae216735a2 100644
--- a/examples/quick/quick-accessibility/CMakeLists.txt
+++ b/examples/quick/quick-accessibility/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(quick-accessibility
main.cpp
)
+set_target_properties(quick-accessibility PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(quick-accessibility PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt b/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt
index 1fdf909ab8..408bfb0ad2 100644
--- a/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt
+++ b/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt
@@ -27,6 +27,10 @@ qt_add_executable(qquickviewcomparison
main.cpp
mainwindow.cpp mainwindow.h
)
+set_target_properties(qquickviewcomparison PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qquickviewcomparison PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/quickwidgets/quickwidget/CMakeLists.txt b/examples/quick/quickwidgets/quickwidget/CMakeLists.txt
index 484709fdae..5cd4b9445a 100644
--- a/examples/quick/quickwidgets/quickwidget/CMakeLists.txt
+++ b/examples/quick/quickwidgets/quickwidget/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(quickwidget
fbitem.cpp fbitem.h
main.cpp
)
+set_target_properties(quickwidget PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(quickwidget PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt b/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt
index 74d4d55ac7..949c609af1 100644
--- a/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt
+++ b/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(rendercontrol_d3d11
main.cpp
window.cpp window.h
)
+set_target_properties(rendercontrol_d3d11 PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(rendercontrol_d3d11 PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt b/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt
index f5d1c9026e..3445fd00cb 100644
--- a/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt
+++ b/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(rendercontrol_opengl
main.cpp
window_singlethreaded.cpp window_singlethreaded.h
)
+set_target_properties(rendercontrol_opengl PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(rendercontrol_opengl PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/righttoleft/CMakeLists.txt b/examples/quick/righttoleft/CMakeLists.txt
index 9eb7665dc0..5faf4bda61 100644
--- a/examples/quick/righttoleft/CMakeLists.txt
+++ b/examples/quick/righttoleft/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(righttoleft
main.cpp
)
+set_target_properties(righttoleft PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(righttoleft PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt b/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt
index b4f77372de..28613e67a3 100644
--- a/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt
+++ b/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(customgeometry
beziercurve.cpp beziercurve.h
main.cpp
)
+set_target_properties(customgeometry PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customgeometry PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/customgeometry/CMakeLists.txt b/examples/quick/scenegraph/customgeometry/CMakeLists.txt
index c9a49a4752..0e54c00d24 100644
--- a/examples/quick/scenegraph/customgeometry/CMakeLists.txt
+++ b/examples/quick/scenegraph/customgeometry/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(customgeometry_declarative # special case
beziercurve.cpp beziercurve.h
main.cpp
)
+set_target_properties(customgeometry_declarative PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(customgeometry_declarative PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt b/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt
index d409fd1086..6acf1a858b 100644
--- a/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt
+++ b/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(custommaterial
customitem.cpp customitem.h
main.cpp
)
+set_target_properties(custommaterial PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(custommaterial PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/custommaterial/CMakeLists.txt b/examples/quick/scenegraph/custommaterial/CMakeLists.txt
index e57a82b395..46cb238af8 100644
--- a/examples/quick/scenegraph/custommaterial/CMakeLists.txt
+++ b/examples/quick/scenegraph/custommaterial/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(custommaterial_declarative # special case
customitem.cpp customitem.h
main.cpp
)
+set_target_properties(custommaterial_declarative PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(custommaterial_declarative PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt
index 8eca755be8..b443ffb29f 100644
--- a/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt
+++ b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(d3d11underqml
d3d11squircle.cpp d3d11squircle.h
main.cpp
)
+set_target_properties(d3d11underqml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(d3d11underqml PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/fboitem/CMakeLists.txt b/examples/quick/scenegraph/fboitem/CMakeLists.txt
index 46f729a0cd..a9c460b228 100644
--- a/examples/quick/scenegraph/fboitem/CMakeLists.txt
+++ b/examples/quick/scenegraph/fboitem/CMakeLists.txt
@@ -25,6 +25,10 @@ qt_add_executable(fboitem
fboinsgrenderer.cpp fboinsgrenderer.h
main.cpp
)
+set_target_properties(fboitem PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(fboitem PUBLIC
../shared
)
diff --git a/examples/quick/scenegraph/graph/CMakeLists.txt b/examples/quick/scenegraph/graph/CMakeLists.txt
index 312cc68713..6066a58499 100644
--- a/examples/quick/scenegraph/graph/CMakeLists.txt
+++ b/examples/quick/scenegraph/graph/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(graph
main.cpp
noisynode.cpp noisynode.h
)
+set_target_properties(graph PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(graph PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt
index 9427df536c..d01ee2a3df 100644
--- a/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt
+++ b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(metaltextureimport
main.cpp
metaltextureimport.h metaltextureimport.mm
)
+set_target_properties(metaltextureimport PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(metaltextureimport PUBLIC
"-framework Metal"
Qt::Core
diff --git a/examples/quick/scenegraph/metalunderqml/CMakeLists.txt b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt
index c4b1869d1c..1cbff4c7f5 100644
--- a/examples/quick/scenegraph/metalunderqml/CMakeLists.txt
+++ b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(metalunderqml
main.cpp
metalsquircle.h metalsquircle.mm
)
+set_target_properties(metalunderqml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(metalunderqml PUBLIC
"-framework Metal"
Qt::Core
diff --git a/examples/quick/scenegraph/openglunderqml/CMakeLists.txt b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt
index e9c668083a..0772c05259 100644
--- a/examples/quick/scenegraph/openglunderqml/CMakeLists.txt
+++ b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(openglunderqml
main.cpp
squircle.cpp squircle.h
)
+set_target_properties(openglunderqml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(openglunderqml PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/threadedanimation/CMakeLists.txt b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt
index 4fbe2d7518..de00297e69 100644
--- a/examples/quick/scenegraph/threadedanimation/CMakeLists.txt
+++ b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(threadedanimation
main.cpp
spinner.cpp spinner.h
)
+set_target_properties(threadedanimation PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(threadedanimation PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt
index b8ec2724e8..5515a14b23 100644
--- a/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt
+++ b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(twotextureproviders
main.cpp
xorblender.cpp xorblender.h
)
+set_target_properties(twotextureproviders PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(twotextureproviders PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt b/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt
index a0ee87fdd5..b26aedf6ee 100644
--- a/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt
+++ b/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(vulkantextureimport
main.cpp
vulkantextureimport.cpp vulkantextureimport.h
)
+set_target_properties(vulkantextureimport PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(vulkantextureimport PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt
index 27d1e2baac..96741c6e86 100644
--- a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt
+++ b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(vulkanunderqml
main.cpp
vulkansquircle.cpp vulkansquircle.h
)
+set_target_properties(vulkanunderqml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(vulkanunderqml PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/shadereffects/CMakeLists.txt b/examples/quick/shadereffects/CMakeLists.txt
index 941ad279c9..136cff7783 100644
--- a/examples/quick/shadereffects/CMakeLists.txt
+++ b/examples/quick/shadereffects/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(shadereffects
main.cpp
)
+set_target_properties(shadereffects PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(shadereffects PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/shapes/CMakeLists.txt b/examples/quick/shapes/CMakeLists.txt
index fc449c8e5f..517f986e27 100644
--- a/examples/quick/shapes/CMakeLists.txt
+++ b/examples/quick/shapes/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(shapes
main.cpp
)
+set_target_properties(shapes PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(shapes PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/tableview/gameoflife/CMakeLists.txt b/examples/quick/tableview/gameoflife/CMakeLists.txt
index 3ee3a7584d..4592943c11 100644
--- a/examples/quick/tableview/gameoflife/CMakeLists.txt
+++ b/examples/quick/tableview/gameoflife/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(gameoflife
gameoflifemodel.cpp gameoflifemodel.h
main.cpp
)
+set_target_properties(gameoflife PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(gameoflife PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/tableview/pixelator/CMakeLists.txt b/examples/quick/tableview/pixelator/CMakeLists.txt
index ccefb588e9..41b0a139c8 100644
--- a/examples/quick/tableview/pixelator/CMakeLists.txt
+++ b/examples/quick/tableview/pixelator/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(qml_pixelator
imagemodel.cpp imagemodel.h
main.cpp
)
+set_target_properties(qml_pixelator PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qml_pixelator PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/text/CMakeLists.txt b/examples/quick/text/CMakeLists.txt
index 00ebc61d62..20d4228bcf 100644
--- a/examples/quick/text/CMakeLists.txt
+++ b/examples/quick/text/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(text
main.cpp
)
+set_target_properties(text PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(text PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/threading/CMakeLists.txt b/examples/quick/threading/CMakeLists.txt
index edf3be9698..3dcc58158e 100644
--- a/examples/quick/threading/CMakeLists.txt
+++ b/examples/quick/threading/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(threading
main.cpp
)
+set_target_properties(threading PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(threading PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/touchinteraction/CMakeLists.txt b/examples/quick/touchinteraction/CMakeLists.txt
index 090895bc26..af3219ac7d 100644
--- a/examples/quick/touchinteraction/CMakeLists.txt
+++ b/examples/quick/touchinteraction/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(touchinteraction
main.cpp
)
+set_target_properties(touchinteraction PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(touchinteraction PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/views/CMakeLists.txt b/examples/quick/views/CMakeLists.txt
index f2b2a1eb09..9951bd48ff 100644
--- a/examples/quick/views/CMakeLists.txt
+++ b/examples/quick/views/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(views
main.cpp
)
+set_target_properties(views PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(views PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quick/window/CMakeLists.txt b/examples/quick/window/CMakeLists.txt
index 8c4d790170..4fa2bcac4c 100644
--- a/examples/quick/window/CMakeLists.txt
+++ b/examples/quick/window/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(window
main.cpp
)
+set_target_properties(window PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(window PUBLIC
Qt::Core
Qt::Gui