aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 17:32:24 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 21:20:04 +0100
commitedfb8943fc7959c66b58f179da13fecbbf369dfc (patch)
tree0c7f451d8dbb3184c832151163f3efc8348557ed /examples
parent04913fefc9f628407fbc432fc903bbb1559de42e (diff)
CMake: Regenerate examples to set the WIN32_EXECUTABLE property
As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Change-Id: I1113701f04a16b05b03fbb1a49f131c84659cdcb Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/contactlist/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/flatstyle/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/gallery/.prev_CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/gallery/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/imagine/automotive/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/sidepanel/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/swipetoremove/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/texteditor/.prev_CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/texteditor/CMakeLists.txt4
-rw-r--r--examples/quickcontrols2/wearable/CMakeLists.txt4
16 files changed, 64 insertions, 0 deletions
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
index e0c57c4ada..07cb58baad 100644
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(chapter1-settingup
main.cpp
)
+set_target_properties(chapter1-settingup PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter1-settingup PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
index f34fda6022..13db14c9dd 100644
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(chapter2-lists
main.cpp
)
+set_target_properties(chapter2-lists PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter2-lists PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
index ba090cc7f4..a75f26b72e 100644
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(chapter3-navigation
main.cpp
)
+set_target_properties(chapter3-navigation PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter3-navigation PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
index 82f5ea6225..2cd7cd8699 100644
--- a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(chapter4-models
sqlcontactmodel.cpp sqlcontactmodel.h
sqlconversationmodel.cpp sqlconversationmodel.h
)
+set_target_properties(chapter4-models PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter4-models PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
index 205318e38f..9c03be4d32 100644
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
@@ -26,6 +26,10 @@ qt_add_executable(chapter5-styling
sqlcontactmodel.cpp sqlcontactmodel.h
sqlconversationmodel.cpp sqlconversationmodel.h
)
+set_target_properties(chapter5-styling PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(chapter5-styling PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/contactlist/CMakeLists.txt b/examples/quickcontrols2/contactlist/CMakeLists.txt
index 959a79b47e..8a2d1ca915 100644
--- a/examples/quickcontrols2/contactlist/CMakeLists.txt
+++ b/examples/quickcontrols2/contactlist/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(contactlist
contactmodel.cpp contactmodel.h
main.cpp
)
+set_target_properties(contactlist PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(contactlist PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/flatstyle/CMakeLists.txt b/examples/quickcontrols2/flatstyle/CMakeLists.txt
index 3ff7687e82..8719fbf431 100644
--- a/examples/quickcontrols2/flatstyle/CMakeLists.txt
+++ b/examples/quickcontrols2/flatstyle/CMakeLists.txt
@@ -24,6 +24,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(flatstyle
main.cpp
)
+set_target_properties(flatstyle PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(flatstyle PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/gallery/.prev_CMakeLists.txt b/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
index 88f5936f44..9cf56d6ac0 100644
--- a/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
+++ b/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS QuickControls2)
qt_add_executable(gallery
gallery.cpp
)
+set_target_properties(gallery PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(gallery PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/gallery/CMakeLists.txt b/examples/quickcontrols2/gallery/CMakeLists.txt
index dc61edf0a7..06ddf33351 100644
--- a/examples/quickcontrols2/gallery/CMakeLists.txt
+++ b/examples/quickcontrols2/gallery/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS QuickControls2)
qt_add_executable(gallery_controls2 # special case
gallery.cpp
)
+set_target_properties(gallery_controls2 PROPERTIES # special case
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(gallery_controls2 PUBLIC # special case
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
index 3ed6e87598..690edabac3 100644
--- a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
+++ b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS QuickControls2)
qt_add_executable(automotive
automotive.cpp
)
+set_target_properties(automotive PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(automotive PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
index 28447233d7..acb08164a3 100644
--- a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
+++ b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS QuickControls2)
qt_add_executable(musicplayer
musicplayer.cpp
)
+set_target_properties(musicplayer PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(musicplayer PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/sidepanel/CMakeLists.txt b/examples/quickcontrols2/sidepanel/CMakeLists.txt
index efb85a4807..19d8eb860a 100644
--- a/examples/quickcontrols2/sidepanel/CMakeLists.txt
+++ b/examples/quickcontrols2/sidepanel/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(sidepanel
sidepanel.cpp
)
+set_target_properties(sidepanel PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(sidepanel PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/swipetoremove/CMakeLists.txt b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
index e27a9b94ff..93444cfd20 100644
--- a/examples/quickcontrols2/swipetoremove/CMakeLists.txt
+++ b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(swipetoremove
swipetoremove.cpp
)
+set_target_properties(swipetoremove PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(swipetoremove PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt b/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
index aeda76229a..a30753538d 100644
--- a/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
+++ b/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(texteditor
documenthandler.cpp documenthandler.h
texteditor.cpp
)
+set_target_properties(texteditor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(texteditor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/texteditor/CMakeLists.txt b/examples/quickcontrols2/texteditor/CMakeLists.txt
index aa66ad3c33..8c1f7cfb9b 100644
--- a/examples/quickcontrols2/texteditor/CMakeLists.txt
+++ b/examples/quickcontrols2/texteditor/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(texteditor
documenthandler.cpp documenthandler.h
texteditor.cpp
)
+set_target_properties(texteditor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(texteditor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/quickcontrols2/wearable/CMakeLists.txt b/examples/quickcontrols2/wearable/CMakeLists.txt
index a0edda1520..a8aace7a3c 100644
--- a/examples/quickcontrols2/wearable/CMakeLists.txt
+++ b/examples/quickcontrols2/wearable/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS QuickControls2)
qt_add_executable(wearable
wearable.cpp
)
+set_target_properties(wearable PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(wearable PUBLIC
Qt::Core
Qt::Gui