aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/tutorials/extending-qml/chapter6-plugins
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/qml/tutorials/extending-qml/chapter6-plugins
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/qml/tutorials/extending-qml/chapter6-plugins')
-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
3 files changed, 12 insertions, 0 deletions
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