summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-16 16:26:43 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-20 09:13:25 +0200
commit294c917b7e9c5cf6b3f88b62c9d6c200a205d07e (patch)
treef9415634092828759952f5ba7247376c3144cf85 /examples
parent8a5938b33a05e2cb4ead7114c90f3a9f5a473874 (diff)
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661 Change-Id: I06af51591b79f9432d09b08595f8af021118a6dc Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/assistant/remotecontrol/CMakeLists.txt2
-rw-r--r--examples/assistant/simpletextviewer/.prev_CMakeLists.txt2
-rw-r--r--examples/assistant/simpletextviewer/CMakeLists.txt2
-rw-r--r--examples/designer/calculatorbuilder/CMakeLists.txt2
-rw-r--r--examples/designer/calculatorform/CMakeLists.txt2
-rw-r--r--examples/designer/containerextension/.prev_CMakeLists.txt2
-rw-r--r--examples/designer/customwidgetplugin/.prev_CMakeLists.txt2
-rw-r--r--examples/designer/taskmenuextension/.prev_CMakeLists.txt2
-rw-r--r--examples/designer/worldtimeclockbuilder/CMakeLists.txt2
-rw-r--r--examples/designer/worldtimeclockplugin/.prev_CMakeLists.txt2
-rw-r--r--examples/help/contextsensitivehelp/CMakeLists.txt2
-rw-r--r--examples/linguist/arrowpad/CMakeLists.txt2
-rw-r--r--examples/linguist/hellotr/CMakeLists.txt2
-rw-r--r--examples/linguist/trollprint/CMakeLists.txt2
-rw-r--r--examples/uitools/multipleinheritance/CMakeLists.txt2
-rw-r--r--examples/uitools/textfinder/CMakeLists.txt2
16 files changed, 16 insertions, 16 deletions
diff --git a/examples/assistant/remotecontrol/CMakeLists.txt b/examples/assistant/remotecontrol/CMakeLists.txt
index 3e4627975..2859ea839 100644
--- a/examples/assistant/remotecontrol/CMakeLists.txt
+++ b/examples/assistant/remotecontrol/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(remotecontrol
+qt_add_executable(remotecontrol
main.cpp
remotecontrol.cpp remotecontrol.h remotecontrol.ui
)
diff --git a/examples/assistant/simpletextviewer/.prev_CMakeLists.txt b/examples/assistant/simpletextviewer/.prev_CMakeLists.txt
index 21006b745..f872c7450 100644
--- a/examples/assistant/simpletextviewer/.prev_CMakeLists.txt
+++ b/examples/assistant/simpletextviewer/.prev_CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(simpletextviewer
+qt_add_executable(simpletextviewer
assistant.cpp assistant.h
findfiledialog.cpp findfiledialog.h
main.cpp
diff --git a/examples/assistant/simpletextviewer/CMakeLists.txt b/examples/assistant/simpletextviewer/CMakeLists.txt
index 481d12a98..2c2b88569 100644
--- a/examples/assistant/simpletextviewer/CMakeLists.txt
+++ b/examples/assistant/simpletextviewer/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(simpletextviewer
+qt_add_executable(simpletextviewer
assistant.cpp assistant.h
findfiledialog.cpp findfiledialog.h
main.cpp
diff --git a/examples/designer/calculatorbuilder/CMakeLists.txt b/examples/designer/calculatorbuilder/CMakeLists.txt
index a053a0745..376be2700 100644
--- a/examples/designer/calculatorbuilder/CMakeLists.txt
+++ b/examples/designer/calculatorbuilder/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS UiTools)
-add_qt_gui_executable(calculatorbuilder
+qt_add_executable(calculatorbuilder
calculatorform.cpp calculatorform.h
main.cpp
)
diff --git a/examples/designer/calculatorform/CMakeLists.txt b/examples/designer/calculatorform/CMakeLists.txt
index 7ec2b3407..b9c11ba69 100644
--- a/examples/designer/calculatorform/CMakeLists.txt
+++ b/examples/designer/calculatorform/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(calculatorform
+qt_add_executable(calculatorform
calculatorform.cpp calculatorform.h calculatorform.ui
main.cpp
)
diff --git a/examples/designer/containerextension/.prev_CMakeLists.txt b/examples/designer/containerextension/.prev_CMakeLists.txt
index 81f1de9eb..188ad7168 100644
--- a/examples/designer/containerextension/.prev_CMakeLists.txt
+++ b/examples/designer/containerextension/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS Designer)
-add_qt_gui_executable(containerextension
+qt_add_executable(containerextension
multipagewidget.cpp multipagewidget.h
multipagewidgetcontainerextension.cpp multipagewidgetcontainerextension.h
multipagewidgetextensionfactory.cpp multipagewidgetextensionfactory.h
diff --git a/examples/designer/customwidgetplugin/.prev_CMakeLists.txt b/examples/designer/customwidgetplugin/.prev_CMakeLists.txt
index c241f2422..4eec2c4b9 100644
--- a/examples/designer/customwidgetplugin/.prev_CMakeLists.txt
+++ b/examples/designer/customwidgetplugin/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS UiPlugin)
-add_qt_gui_executable(customwidgetplugin
+qt_add_executable(customwidgetplugin
analogclock.cpp analogclock.h
customwidgetplugin.cpp customwidgetplugin.h
)
diff --git a/examples/designer/taskmenuextension/.prev_CMakeLists.txt b/examples/designer/taskmenuextension/.prev_CMakeLists.txt
index 0a6900865..c1bf0f51d 100644
--- a/examples/designer/taskmenuextension/.prev_CMakeLists.txt
+++ b/examples/designer/taskmenuextension/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS Designer)
-add_qt_gui_executable(taskmenuextension
+qt_add_executable(taskmenuextension
tictactoe.cpp tictactoe.h
tictactoedialog.cpp tictactoedialog.h
tictactoeplugin.cpp tictactoeplugin.h
diff --git a/examples/designer/worldtimeclockbuilder/CMakeLists.txt b/examples/designer/worldtimeclockbuilder/CMakeLists.txt
index 8c703138c..a042c28a3 100644
--- a/examples/designer/worldtimeclockbuilder/CMakeLists.txt
+++ b/examples/designer/worldtimeclockbuilder/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS UiTools)
-add_qt_gui_executable(worldtimeclockbuilder
+qt_add_executable(worldtimeclockbuilder
main.cpp
)
target_link_libraries(worldtimeclockbuilder PUBLIC
diff --git a/examples/designer/worldtimeclockplugin/.prev_CMakeLists.txt b/examples/designer/worldtimeclockplugin/.prev_CMakeLists.txt
index 52eb77843..ba606e2f7 100644
--- a/examples/designer/worldtimeclockplugin/.prev_CMakeLists.txt
+++ b/examples/designer/worldtimeclockplugin/.prev_CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS UiPlugin)
-add_qt_gui_executable(worldtimeclockplugin
+qt_add_executable(worldtimeclockplugin
worldtimeclock.cpp worldtimeclock.h
worldtimeclockplugin.cpp worldtimeclockplugin.h
)
diff --git a/examples/help/contextsensitivehelp/CMakeLists.txt b/examples/help/contextsensitivehelp/CMakeLists.txt
index 0bcf89871..4ad106c40 100644
--- a/examples/help/contextsensitivehelp/CMakeLists.txt
+++ b/examples/help/contextsensitivehelp/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Help)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(contextsensitivehelp
+qt_add_executable(contextsensitivehelp
helpbrowser.cpp helpbrowser.h
main.cpp
wateringconfigdialog.cpp wateringconfigdialog.h wateringconfigdialog.ui
diff --git a/examples/linguist/arrowpad/CMakeLists.txt b/examples/linguist/arrowpad/CMakeLists.txt
index 4781947e2..e2fdf489e 100644
--- a/examples/linguist/arrowpad/CMakeLists.txt
+++ b/examples/linguist/arrowpad/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(arrowpad
+qt_add_executable(arrowpad
arrowpad.cpp arrowpad.h
main.cpp
mainwindow.cpp mainwindow.h
diff --git a/examples/linguist/hellotr/CMakeLists.txt b/examples/linguist/hellotr/CMakeLists.txt
index 2d532895f..06ad4c18b 100644
--- a/examples/linguist/hellotr/CMakeLists.txt
+++ b/examples/linguist/hellotr/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(hellotr
+qt_add_executable(hellotr
main.cpp
)
target_link_libraries(hellotr PUBLIC
diff --git a/examples/linguist/trollprint/CMakeLists.txt b/examples/linguist/trollprint/CMakeLists.txt
index 6ad0d6837..74b93af9b 100644
--- a/examples/linguist/trollprint/CMakeLists.txt
+++ b/examples/linguist/trollprint/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(trollprint
+qt_add_executable(trollprint
main.cpp
mainwindow.cpp mainwindow.h
printpanel.cpp printpanel.h
diff --git a/examples/uitools/multipleinheritance/CMakeLists.txt b/examples/uitools/multipleinheritance/CMakeLists.txt
index 45e807daa..94b5cd09f 100644
--- a/examples/uitools/multipleinheritance/CMakeLists.txt
+++ b/examples/uitools/multipleinheritance/CMakeLists.txt
@@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
-add_qt_gui_executable(multipleinheritance
+qt_add_executable(multipleinheritance
calculatorform.cpp calculatorform.h calculatorform.ui
main.cpp
)
diff --git a/examples/uitools/textfinder/CMakeLists.txt b/examples/uitools/textfinder/CMakeLists.txt
index 67eb28eae..08e045b8f 100644
--- a/examples/uitools/textfinder/CMakeLists.txt
+++ b/examples/uitools/textfinder/CMakeLists.txt
@@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS UiTools)
-add_qt_gui_executable(textfinder
+qt_add_executable(textfinder
main.cpp
textfinder.cpp textfinder.h
)