aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-16 16:22:27 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-20 09:13:34 +0200
commita4445cf2f7c6a7769996ec547591bd23b914e6f2 (patch)
tree24bad829eca17712983ed7d3ab0f3e2efe3b2c7b
parentab419cb5c78f2d4bb58fbfaa7000f6a0c89cc3dd (diff)
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661 Change-Id: I0d26db40fdb7bd35c92c8fd970b60ec580acc0e0 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/contactlist/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/flatstyle/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/gallery/.prev_CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/gallery/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/imagine/automotive/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/sidepanel/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/swipetoremove/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/texteditor/.prev_CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/texteditor/CMakeLists.txt2
-rw-r--r--examples/quickcontrols2/wearable/CMakeLists.txt2
16 files changed, 16 insertions, 16 deletions
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
index cc9fa12c..e0c57c4a 100644
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
-add_qt_gui_executable(chapter1-settingup
+qt_add_executable(chapter1-settingup
main.cpp
)
target_link_libraries(chapter1-settingup PUBLIC
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
index 5e8ff2f5..f34fda60 100644
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
-add_qt_gui_executable(chapter2-lists
+qt_add_executable(chapter2-lists
main.cpp
)
target_link_libraries(chapter2-lists PUBLIC
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
index dcebc7dd..ba090cc7 100644
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
-add_qt_gui_executable(chapter3-navigation
+qt_add_executable(chapter3-navigation
main.cpp
)
target_link_libraries(chapter3-navigation PUBLIC
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
index f000e1d0..82f5ea62 100644
--- a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
@@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS Sql)
-add_qt_gui_executable(chapter4-models
+qt_add_executable(chapter4-models
main.cpp
sqlcontactmodel.cpp sqlcontactmodel.h
sqlconversationmodel.cpp sqlconversationmodel.h
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
index 9e3df84d..205318e3 100644
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
@@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS Sql)
-add_qt_gui_executable(chapter5-styling
+qt_add_executable(chapter5-styling
main.cpp
sqlcontactmodel.cpp sqlcontactmodel.h
sqlconversationmodel.cpp sqlconversationmodel.h
diff --git a/examples/quickcontrols2/contactlist/CMakeLists.txt b/examples/quickcontrols2/contactlist/CMakeLists.txt
index b355902d..959a79b4 100644
--- a/examples/quickcontrols2/contactlist/CMakeLists.txt
+++ b/examples/quickcontrols2/contactlist/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
-add_qt_gui_executable(contactlist
+qt_add_executable(contactlist
contactmodel.cpp contactmodel.h
main.cpp
)
diff --git a/examples/quickcontrols2/flatstyle/CMakeLists.txt b/examples/quickcontrols2/flatstyle/CMakeLists.txt
index d8343b1f..3ff7687e 100644
--- a/examples/quickcontrols2/flatstyle/CMakeLists.txt
+++ b/examples/quickcontrols2/flatstyle/CMakeLists.txt
@@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(flatstyle
+qt_add_executable(flatstyle
main.cpp
)
target_link_libraries(flatstyle PUBLIC
diff --git a/examples/quickcontrols2/gallery/.prev_CMakeLists.txt b/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
index 042b3a0c..88f5936f 100644
--- a/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
+++ b/examples/quickcontrols2/gallery/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(gallery
+qt_add_executable(gallery
gallery.cpp
)
target_link_libraries(gallery PUBLIC
diff --git a/examples/quickcontrols2/gallery/CMakeLists.txt b/examples/quickcontrols2/gallery/CMakeLists.txt
index 93355b9a..dc61edf0 100644
--- a/examples/quickcontrols2/gallery/CMakeLists.txt
+++ b/examples/quickcontrols2/gallery/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(gallery_controls2 # special case
+qt_add_executable(gallery_controls2 # special case
gallery.cpp
)
target_link_libraries(gallery_controls2 PUBLIC # special case
diff --git a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
index b5eb461f..3ed6e875 100644
--- a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
+++ b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(automotive
+qt_add_executable(automotive
automotive.cpp
)
target_link_libraries(automotive PUBLIC
diff --git a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
index 4fdfd08d..28447233 100644
--- a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
+++ b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(musicplayer
+qt_add_executable(musicplayer
musicplayer.cpp
)
target_link_libraries(musicplayer PUBLIC
diff --git a/examples/quickcontrols2/sidepanel/CMakeLists.txt b/examples/quickcontrols2/sidepanel/CMakeLists.txt
index e057461c..efb85a48 100644
--- a/examples/quickcontrols2/sidepanel/CMakeLists.txt
+++ b/examples/quickcontrols2/sidepanel/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
-add_qt_gui_executable(sidepanel
+qt_add_executable(sidepanel
sidepanel.cpp
)
target_link_libraries(sidepanel PUBLIC
diff --git a/examples/quickcontrols2/swipetoremove/CMakeLists.txt b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
index b6269283..e27a9b94 100644
--- a/examples/quickcontrols2/swipetoremove/CMakeLists.txt
+++ b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Qml)
-add_qt_gui_executable(swipetoremove
+qt_add_executable(swipetoremove
swipetoremove.cpp
)
target_link_libraries(swipetoremove PUBLIC
diff --git a/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt b/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
index 743b62aa..aeda7622 100644
--- a/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
+++ b/examples/quickcontrols2/texteditor/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(texteditor
+qt_add_executable(texteditor
documenthandler.cpp documenthandler.h
texteditor.cpp
)
diff --git a/examples/quickcontrols2/texteditor/CMakeLists.txt b/examples/quickcontrols2/texteditor/CMakeLists.txt
index 8858bd22..aa66ad3c 100644
--- a/examples/quickcontrols2/texteditor/CMakeLists.txt
+++ b/examples/quickcontrols2/texteditor/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(texteditor
+qt_add_executable(texteditor
documenthandler.cpp documenthandler.h
texteditor.cpp
)
diff --git a/examples/quickcontrols2/wearable/CMakeLists.txt b/examples/quickcontrols2/wearable/CMakeLists.txt
index 23f4f128..a0edda15 100644
--- a/examples/quickcontrols2/wearable/CMakeLists.txt
+++ b/examples/quickcontrols2/wearable/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS QuickControls2)
-add_qt_gui_executable(wearable
+qt_add_executable(wearable
wearable.cpp
)
target_link_libraries(wearable PUBLIC