From 2ffbac7cb2f16ab350d203a12a86535772d1c578 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 16 Oct 2020 11:55:24 +0200 Subject: CMake: Regenerate examples to use qt_add_executable Task-number: QTBUG-87661 Change-Id: I0dacfdc97a3fb7d88da85b67800f2c1b084d869b Reviewed-by: Joerg Bornemann --- examples/widgets/mainwindows/application/CMakeLists.txt | 2 +- examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt | 2 +- examples/widgets/mainwindows/dockwidgets/CMakeLists.txt | 2 +- examples/widgets/mainwindows/mainwindow/CMakeLists.txt | 2 +- examples/widgets/mainwindows/mdi/CMakeLists.txt | 2 +- examples/widgets/mainwindows/menus/CMakeLists.txt | 2 +- examples/widgets/mainwindows/sdi/CMakeLists.txt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/widgets/mainwindows') diff --git a/examples/widgets/mainwindows/application/CMakeLists.txt b/examples/widgets/mainwindows/application/CMakeLists.txt index d57bec2fc2..7142f3d8e5 100644 --- a/examples/widgets/mainwindows/application/CMakeLists.txt +++ b/examples/widgets/mainwindows/application/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(application +qt_add_executable(application main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt index d61059e09b..8ba50928cf 100644 --- a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt +++ b/examples/widgets/mainwindows/dockwidgets/.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(dockwidgets +qt_add_executable(dockwidgets main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt index c752c3be29..4d92f80a48 100644 --- a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt +++ b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS PrintSupport) # special case -add_qt_gui_executable(dockwidgets +qt_add_executable(dockwidgets main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt index dee27b4201..e692d48f4a 100644 --- a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt +++ b/examples/widgets/mainwindows/mainwindow/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(mainwindow +qt_add_executable(mainwindow colorswatch.cpp colorswatch.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/mainwindows/mdi/CMakeLists.txt b/examples/widgets/mainwindows/mdi/CMakeLists.txt index 812d6e2f9f..270f9f02ac 100644 --- a/examples/widgets/mainwindows/mdi/CMakeLists.txt +++ b/examples/widgets/mainwindows/mdi/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(mdi +qt_add_executable(mdi main.cpp mainwindow.cpp mainwindow.h mdichild.cpp mdichild.h diff --git a/examples/widgets/mainwindows/menus/CMakeLists.txt b/examples/widgets/mainwindows/menus/CMakeLists.txt index a6c207d364..7a37a69ec6 100644 --- a/examples/widgets/mainwindows/menus/CMakeLists.txt +++ b/examples/widgets/mainwindows/menus/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(menus +qt_add_executable(menus main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/mainwindows/sdi/CMakeLists.txt b/examples/widgets/mainwindows/sdi/CMakeLists.txt index 1086bde487..84622b4062 100644 --- a/examples/widgets/mainwindows/sdi/CMakeLists.txt +++ b/examples/widgets/mainwindows/sdi/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(sdi +qt_add_executable(sdi main.cpp mainwindow.cpp mainwindow.h ) -- cgit v1.2.3