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/corelib/ipc/localfortuneclient/CMakeLists.txt | 2 +- examples/corelib/ipc/localfortuneserver/CMakeLists.txt | 2 +- examples/corelib/ipc/sharedmemory/CMakeLists.txt | 2 +- examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt | 2 +- examples/corelib/serialization/cbordump/CMakeLists.txt | 2 +- examples/corelib/serialization/convert/CMakeLists.txt | 2 +- examples/corelib/serialization/savegame/CMakeLists.txt | 2 +- examples/corelib/threads/mandelbrot/CMakeLists.txt | 2 +- examples/corelib/threads/queuedcustomtype/CMakeLists.txt | 2 +- examples/corelib/threads/semaphores/CMakeLists.txt | 2 +- examples/corelib/threads/waitconditions/CMakeLists.txt | 2 +- examples/corelib/tools/contiguouscache/CMakeLists.txt | 2 +- examples/corelib/tools/customtype/CMakeLists.txt | 2 +- examples/corelib/tools/customtypesending/CMakeLists.txt | 2 +- examples/dbus/chat/.prev_CMakeLists.txt | 2 +- examples/dbus/chat/CMakeLists.txt | 2 +- examples/dbus/complexpingpong/CMakeLists.txt | 4 ++-- examples/dbus/listnames/CMakeLists.txt | 2 +- examples/dbus/pingpong/CMakeLists.txt | 4 ++-- examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt | 2 +- examples/dbus/remotecontrolledcar/car/CMakeLists.txt | 2 +- .../dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt | 2 +- examples/dbus/remotecontrolledcar/controller/CMakeLists.txt | 2 +- examples/embedded/digiflip/CMakeLists.txt | 2 +- examples/embedded/flickable/CMakeLists.txt | 2 +- examples/embedded/flightinfo/CMakeLists.txt | 2 +- examples/embedded/lightmaps/CMakeLists.txt | 2 +- examples/embedded/raycasting/CMakeLists.txt | 2 +- examples/embedded/styleexample/CMakeLists.txt | 2 +- examples/gui/analogclock/.prev_CMakeLists.txt | 2 +- examples/gui/analogclock/CMakeLists.txt | 2 +- examples/gui/rasterwindow/.prev_CMakeLists.txt | 2 +- examples/gui/rasterwindow/CMakeLists.txt | 2 +- examples/network/blockingfortuneclient/CMakeLists.txt | 2 +- examples/network/broadcastreceiver/CMakeLists.txt | 2 +- examples/network/broadcastsender/CMakeLists.txt | 2 +- examples/network/dnslookup/CMakeLists.txt | 2 +- examples/network/download/CMakeLists.txt | 2 +- examples/network/downloadmanager/CMakeLists.txt | 2 +- examples/network/fortuneclient/CMakeLists.txt | 2 +- examples/network/fortuneserver/CMakeLists.txt | 2 +- examples/network/googlesuggest/CMakeLists.txt | 2 +- examples/network/http/CMakeLists.txt | 2 +- examples/network/loopback/CMakeLists.txt | 2 +- examples/network/multicastreceiver/CMakeLists.txt | 2 +- examples/network/multicastsender/CMakeLists.txt | 2 +- examples/network/multistreamclient/CMakeLists.txt | 2 +- examples/network/multistreamserver/CMakeLists.txt | 2 +- examples/network/network-chat/CMakeLists.txt | 2 +- examples/network/securesocketclient/CMakeLists.txt | 2 +- examples/network/secureudpclient/CMakeLists.txt | 2 +- examples/network/secureudpserver/CMakeLists.txt | 2 +- examples/network/threadedfortuneserver/CMakeLists.txt | 2 +- examples/network/torrent/.prev_CMakeLists.txt | 2 +- examples/network/torrent/CMakeLists.txt | 2 +- examples/opengl/2dpainting/CMakeLists.txt | 2 +- examples/opengl/computegles31/CMakeLists.txt | 2 +- examples/opengl/contextinfo/CMakeLists.txt | 2 +- examples/opengl/cube/CMakeLists.txt | 2 +- examples/opengl/hellogl2/CMakeLists.txt | 2 +- examples/opengl/hellogles3/CMakeLists.txt | 2 +- examples/opengl/hellowindow/CMakeLists.txt | 2 +- examples/opengl/openglwindow/CMakeLists.txt | 2 +- examples/opengl/paintedwindow/CMakeLists.txt | 2 +- examples/opengl/qopenglwidget/CMakeLists.txt | 2 +- examples/opengl/qopenglwindow/CMakeLists.txt | 2 +- examples/opengl/textures/CMakeLists.txt | 2 +- examples/opengl/threadedqopenglwidget/CMakeLists.txt | 2 +- examples/qpa/qrasterwindow/CMakeLists.txt | 2 +- examples/qpa/windows/CMakeLists.txt | 2 +- examples/qtconcurrent/imagescaling/CMakeLists.txt | 2 +- examples/qtconcurrent/map/.prev_CMakeLists.txt | 2 +- examples/qtconcurrent/map/CMakeLists.txt | 2 +- examples/qtconcurrent/progressdialog/CMakeLists.txt | 2 +- examples/qtconcurrent/runfunction/CMakeLists.txt | 2 +- examples/qtconcurrent/wordcount/CMakeLists.txt | 2 +- examples/qtestlib/tutorial1/CMakeLists.txt | 2 +- examples/qtestlib/tutorial2/CMakeLists.txt | 2 +- examples/qtestlib/tutorial3/CMakeLists.txt | 2 +- examples/qtestlib/tutorial4/CMakeLists.txt | 2 +- examples/qtestlib/tutorial5/CMakeLists.txt | 2 +- examples/sql/books/CMakeLists.txt | 2 +- examples/sql/cachedtable/CMakeLists.txt | 2 +- examples/sql/drilldown/CMakeLists.txt | 2 +- examples/sql/masterdetail/CMakeLists.txt | 2 +- examples/sql/querymodel/CMakeLists.txt | 2 +- examples/sql/relationaltablemodel/CMakeLists.txt | 2 +- examples/sql/sqlbrowser/CMakeLists.txt | 2 +- examples/sql/sqlwidgetmapper/CMakeLists.txt | 2 +- examples/sql/tablemodel/CMakeLists.txt | 2 +- examples/vulkan/hellovulkancubes/CMakeLists.txt | 2 +- examples/vulkan/hellovulkantexture/CMakeLists.txt | 2 +- examples/vulkan/hellovulkantriangle/CMakeLists.txt | 2 +- examples/vulkan/hellovulkanwidget/CMakeLists.txt | 2 +- examples/vulkan/hellovulkanwindow/CMakeLists.txt | 2 +- examples/widgets/animation/easing/CMakeLists.txt | 2 +- examples/widgets/desktop/screenshot/CMakeLists.txt | 2 +- examples/widgets/desktop/systray/CMakeLists.txt | 2 +- examples/widgets/dialogs/classwizard/CMakeLists.txt | 2 +- examples/widgets/dialogs/extension/CMakeLists.txt | 2 +- examples/widgets/dialogs/findfiles/CMakeLists.txt | 2 +- examples/widgets/dialogs/licensewizard/CMakeLists.txt | 2 +- examples/widgets/dialogs/standarddialogs/CMakeLists.txt | 2 +- examples/widgets/dialogs/tabdialog/CMakeLists.txt | 2 +- examples/widgets/dialogs/trivialwizard/CMakeLists.txt | 2 +- examples/widgets/draganddrop/draggableicons/CMakeLists.txt | 2 +- examples/widgets/draganddrop/draggabletext/CMakeLists.txt | 2 +- examples/widgets/draganddrop/dropsite/CMakeLists.txt | 2 +- examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt | 2 +- examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt | 2 +- examples/widgets/draganddrop/puzzle/CMakeLists.txt | 2 +- examples/widgets/effects/blurpicker/CMakeLists.txt | 2 +- examples/widgets/effects/fademessage/CMakeLists.txt | 2 +- examples/widgets/gallery/CMakeLists.txt | 2 +- examples/widgets/gestures/imagegestures/CMakeLists.txt | 2 +- examples/widgets/graphicsview/anchorlayout/CMakeLists.txt | 2 +- .../widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt | 2 +- examples/widgets/graphicsview/chip/.prev_CMakeLists.txt | 2 +- examples/widgets/graphicsview/chip/CMakeLists.txt | 2 +- examples/widgets/graphicsview/collidingmice/CMakeLists.txt | 2 +- examples/widgets/graphicsview/diagramscene/CMakeLists.txt | 2 +- examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt | 2 +- examples/widgets/graphicsview/elasticnodes/CMakeLists.txt | 2 +- examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt | 2 +- examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt | 2 +- examples/widgets/graphicsview/flowlayout/CMakeLists.txt | 2 +- examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt | 2 +- examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt | 2 +- examples/widgets/itemviews/addressbook/CMakeLists.txt | 2 +- examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt | 2 +- examples/widgets/itemviews/chart/CMakeLists.txt | 2 +- examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt | 2 +- examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt | 2 +- examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt | 2 +- examples/widgets/itemviews/dirview/CMakeLists.txt | 2 +- examples/widgets/itemviews/editabletreemodel/CMakeLists.txt | 2 +- examples/widgets/itemviews/fetchmore/CMakeLists.txt | 2 +- examples/widgets/itemviews/flattreeview/CMakeLists.txt | 2 +- examples/widgets/itemviews/frozencolumn/CMakeLists.txt | 2 +- examples/widgets/itemviews/interview/CMakeLists.txt | 2 +- examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt | 2 +- examples/widgets/itemviews/pixelator/CMakeLists.txt | 2 +- examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt | 2 +- examples/widgets/itemviews/puzzle/CMakeLists.txt | 2 +- examples/widgets/itemviews/simpledommodel/CMakeLists.txt | 2 +- examples/widgets/itemviews/simpletreemodel/CMakeLists.txt | 2 +- examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt | 2 +- examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt | 2 +- examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt | 2 +- examples/widgets/itemviews/spreadsheet/CMakeLists.txt | 2 +- examples/widgets/itemviews/stardelegate/CMakeLists.txt | 2 +- examples/widgets/itemviews/storageview/CMakeLists.txt | 2 +- examples/widgets/layouts/basiclayouts/CMakeLists.txt | 2 +- examples/widgets/layouts/borderlayout/CMakeLists.txt | 2 +- examples/widgets/layouts/dynamiclayouts/CMakeLists.txt | 2 +- examples/widgets/layouts/flowlayout/CMakeLists.txt | 2 +- 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 +- examples/widgets/painting/affine/.prev_CMakeLists.txt | 2 +- examples/widgets/painting/affine/CMakeLists.txt | 9 +++++++-- examples/widgets/painting/basicdrawing/CMakeLists.txt | 2 +- examples/widgets/painting/composition/.prev_CMakeLists.txt | 2 +- examples/widgets/painting/composition/CMakeLists.txt | 9 +++++++-- examples/widgets/painting/concentriccircles/CMakeLists.txt | 2 +- examples/widgets/painting/deform/.prev_CMakeLists.txt | 2 +- examples/widgets/painting/deform/CMakeLists.txt | 9 +++++++-- examples/widgets/painting/fontsampler/CMakeLists.txt | 2 +- examples/widgets/painting/gradients/.prev_CMakeLists.txt | 2 +- examples/widgets/painting/gradients/CMakeLists.txt | 9 +++++++-- examples/widgets/painting/imagecomposition/CMakeLists.txt | 2 +- examples/widgets/painting/painterpaths/CMakeLists.txt | 2 +- examples/widgets/painting/pathstroke/CMakeLists.txt | 2 +- examples/widgets/painting/transformations/CMakeLists.txt | 2 +- examples/widgets/richtext/calendar/CMakeLists.txt | 2 +- examples/widgets/richtext/orderform/CMakeLists.txt | 2 +- examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt | 2 +- examples/widgets/richtext/textedit/.prev_CMakeLists.txt | 2 +- examples/widgets/richtext/textedit/CMakeLists.txt | 2 +- examples/widgets/scroller/graphicsview/CMakeLists.txt | 2 +- examples/widgets/tools/completer/CMakeLists.txt | 2 +- examples/widgets/tools/customcompleter/CMakeLists.txt | 2 +- .../widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt | 2 +- examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt | 2 +- examples/widgets/tools/i18n/CMakeLists.txt | 2 +- examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt | 2 +- examples/widgets/tools/plugandpaint/app/CMakeLists.txt | 2 +- examples/widgets/tools/regularexpression/CMakeLists.txt | 2 +- examples/widgets/tools/settingseditor/CMakeLists.txt | 2 +- examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt | 2 +- examples/widgets/tools/treemodelcompleter/CMakeLists.txt | 2 +- examples/widgets/tools/undo/CMakeLists.txt | 2 +- examples/widgets/tools/undoframework/CMakeLists.txt | 2 +- examples/widgets/touch/dials/CMakeLists.txt | 2 +- examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt | 2 +- examples/widgets/touch/fingerpaint/CMakeLists.txt | 2 +- examples/widgets/touch/knobs/CMakeLists.txt | 2 +- examples/widgets/touch/pinchzoom/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part1/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part2/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part3/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part4/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part5/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part6/CMakeLists.txt | 2 +- examples/widgets/tutorials/addressbook/part7/CMakeLists.txt | 2 +- .../widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt | 2 +- .../widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt | 2 +- .../widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt | 2 +- .../widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt | 2 +- .../widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt | 2 +- .../widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt | 2 +- examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt | 2 +- examples/widgets/tutorials/notepad/.prev_CMakeLists.txt | 2 +- examples/widgets/tutorials/notepad/CMakeLists.txt | 2 +- examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt | 2 +- examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt | 2 +- examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt | 2 +- examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt | 2 +- examples/widgets/widgets/analogclock/CMakeLists.txt | 2 +- examples/widgets/widgets/calculator/CMakeLists.txt | 2 +- examples/widgets/widgets/calendarwidget/CMakeLists.txt | 2 +- examples/widgets/widgets/charactermap/CMakeLists.txt | 2 +- examples/widgets/widgets/codeeditor/CMakeLists.txt | 2 +- examples/widgets/widgets/digitalclock/CMakeLists.txt | 2 +- examples/widgets/widgets/elidedlabel/CMakeLists.txt | 2 +- examples/widgets/widgets/groupbox/CMakeLists.txt | 2 +- examples/widgets/widgets/icons/.prev_CMakeLists.txt | 2 +- examples/widgets/widgets/icons/CMakeLists.txt | 2 +- examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt | 2 +- examples/widgets/widgets/imageviewer/CMakeLists.txt | 2 +- examples/widgets/widgets/lineedits/CMakeLists.txt | 2 +- examples/widgets/widgets/mousebuttons/CMakeLists.txt | 2 +- examples/widgets/widgets/movie/CMakeLists.txt | 2 +- examples/widgets/widgets/scribble/.prev_CMakeLists.txt | 2 +- examples/widgets/widgets/scribble/CMakeLists.txt | 2 +- examples/widgets/widgets/shapedclock/CMakeLists.txt | 2 +- examples/widgets/widgets/sliders/CMakeLists.txt | 2 +- examples/widgets/widgets/spinboxes/CMakeLists.txt | 2 +- examples/widgets/widgets/styles/CMakeLists.txt | 2 +- examples/widgets/widgets/stylesheet/CMakeLists.txt | 2 +- examples/widgets/widgets/tablet/CMakeLists.txt | 2 +- examples/widgets/widgets/tetrix/CMakeLists.txt | 2 +- examples/widgets/widgets/tooltips/CMakeLists.txt | 2 +- examples/widgets/widgets/validators/CMakeLists.txt | 2 +- examples/widgets/widgets/wiggly/CMakeLists.txt | 2 +- examples/widgets/widgets/windowflags/CMakeLists.txt | 2 +- examples/widgets/windowcontainer/CMakeLists.txt | 2 +- examples/xml/dombookmarks/CMakeLists.txt | 2 +- examples/xml/htmlinfo/CMakeLists.txt | 2 +- examples/xml/rsslisting/CMakeLists.txt | 2 +- examples/xml/streambookmarks/CMakeLists.txt | 2 +- examples/xml/xmlstreamlint/.prev_CMakeLists.txt | 2 +- examples/xml/xmlstreamlint/CMakeLists.txt | 2 +- 262 files changed, 288 insertions(+), 268 deletions(-) diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt index b65f8d224f..837e686465 100644 --- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(localfortuneclient +qt_add_executable(localfortuneclient client.cpp client.h main.cpp ) diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt index b03dd74058..e459913c6f 100644 --- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(localfortuneserver +qt_add_executable(localfortuneserver main.cpp server.cpp server.h ) diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt index 13332bd381..5205cc654b 100644 --- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt +++ b/examples/corelib/ipc/sharedmemory/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(sharedmemory +qt_add_executable(sharedmemory dialog.cpp dialog.h dialog.ui main.cpp ) diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt index 9ccfff3e21..d22ad9d812 100644 --- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt +++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) -add_executable(mimetypebrowser +qt_add_executable(mimetypebrowser main.cpp mainwindow.cpp mainwindow.h mimetypemodel.cpp mimetypemodel.h diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt index d5795e23d3..7397d8c1b3 100644 --- a/examples/corelib/serialization/cbordump/CMakeLists.txt +++ b/examples/corelib/serialization/cbordump/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump") find_package(Qt6 COMPONENTS Core) -add_executable(cbordump +qt_add_executable(cbordump main.cpp ) target_link_libraries(cbordump PUBLIC diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt index 2156867ba0..8c2d4c0132 100644 --- a/examples/corelib/serialization/convert/CMakeLists.txt +++ b/examples/corelib/serialization/convert/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert") find_package(Qt6 COMPONENTS Core) -add_executable(convert +qt_add_executable(convert cborconverter.cpp cborconverter.h converter.h datastreamconverter.cpp datastreamconverter.h diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt index 80305deb39..68adf45209 100644 --- a/examples/corelib/serialization/savegame/CMakeLists.txt +++ b/examples/corelib/serialization/savegame/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame") find_package(Qt6 COMPONENTS Core) -add_executable(savegame +qt_add_executable(savegame character.cpp character.h game.cpp game.h level.cpp level.h diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt index 5ad1a37474..4147900226 100644 --- a/examples/corelib/threads/mandelbrot/CMakeLists.txt +++ b/examples/corelib/threads/mandelbrot/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(mandelbrot +qt_add_executable(mandelbrot main.cpp mandelbrotwidget.cpp mandelbrotwidget.h renderthread.cpp renderthread.h diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt index dccabb3a71..62b1cd5e9a 100644 --- a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt +++ b/examples/corelib/threads/queuedcustomtype/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(queuedcustomtype +qt_add_executable(queuedcustomtype block.cpp block.h main.cpp renderthread.cpp renderthread.h diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt index 62d1f52e34..117f761fd5 100644 --- a/examples/corelib/threads/semaphores/CMakeLists.txt +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores") find_package(Qt6 COMPONENTS Core) -add_executable(semaphores +qt_add_executable(semaphores semaphores.cpp ) target_link_libraries(semaphores PUBLIC diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt index 82b0ed57ec..0449e537c5 100644 --- a/examples/corelib/threads/waitconditions/CMakeLists.txt +++ b/examples/corelib/threads/waitconditions/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions") find_package(Qt6 COMPONENTS Core) -add_executable(waitconditions +qt_add_executable(waitconditions waitconditions.cpp ) target_link_libraries(waitconditions PUBLIC diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt index d2647371bb..a8aef5f94b 100644 --- a/examples/corelib/tools/contiguouscache/CMakeLists.txt +++ b/examples/corelib/tools/contiguouscache/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(contiguouscache +qt_add_executable(contiguouscache main.cpp randomlistmodel.cpp randomlistmodel.h ) diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt index ef50a979d4..e36157e9f6 100644 --- a/examples/corelib/tools/customtype/CMakeLists.txt +++ b/examples/corelib/tools/customtype/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(customtype +qt_add_executable(customtype main.cpp message.cpp message.h ) diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt index 157542e4cb..0b1af630ae 100644 --- a/examples/corelib/tools/customtypesending/CMakeLists.txt +++ b/examples/corelib/tools/customtypesending/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(customtypesending +qt_add_executable(customtypesending main.cpp message.cpp message.h window.cpp window.h diff --git a/examples/dbus/chat/.prev_CMakeLists.txt b/examples/dbus/chat/.prev_CMakeLists.txt index a78bd3683d..601c28429e 100644 --- a/examples/dbus/chat/.prev_CMakeLists.txt +++ b/examples/dbus/chat/.prev_CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS DBus) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(chat +qt_add_executable(chat chat.cpp chat.h chatmainwindow.ui chatsetnickname.ui diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt index e39a960af0..2ff002dd8d 100644 --- a/examples/dbus/chat/CMakeLists.txt +++ b/examples/dbus/chat/CMakeLists.txt @@ -33,7 +33,7 @@ qt6_add_dbus_adaptor(chat_SRCS chat_adaptor ) # special case end -add_qt_gui_executable(chat +qt_add_executable(chat chat.cpp chat.h chatmainwindow.ui chatsetnickname.ui diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt index 6ea75ad4e7..414dbd8216 100644 --- a/examples/dbus/complexpingpong/CMakeLists.txt +++ b/examples/dbus/complexpingpong/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong") find_package(Qt6 COMPONENTS DBus) -add_qt_gui_executable(complexping +qt_add_executable(complexping complexping.cpp complexping.h ping-common.h ) @@ -48,7 +48,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong") find_package(Qt6 COMPONENTS DBus) -add_qt_gui_executable(complexpong +qt_add_executable(complexpong complexpong.cpp complexpong.h ) target_link_libraries(complexpong PUBLIC diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt index a5a1a4b94f..ed3a55118f 100644 --- a/examples/dbus/listnames/CMakeLists.txt +++ b/examples/dbus/listnames/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/listnames") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS DBus) -add_qt_gui_executable(listnames +qt_add_executable(listnames listnames.cpp ) target_link_libraries(listnames PUBLIC diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt index 1c488b857e..beea918511 100644 --- a/examples/dbus/pingpong/CMakeLists.txt +++ b/examples/dbus/pingpong/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/pingpong") find_package(Qt6 COMPONENTS DBus) -add_qt_gui_executable(ping +qt_add_executable(ping ping.cpp ping-common.h ) @@ -48,7 +48,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/dbus/pingpong") find_package(Qt6 COMPONENTS DBus) -add_qt_gui_executable(pong +qt_add_executable(pong ping-common.h pong.cpp pong.h ) diff --git a/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt index e121c9677c..001a82e720 100644 --- a/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt +++ b/examples/dbus/remotecontrolledcar/car/.prev_CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS DBus) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(car +qt_add_executable(car car.cpp car.h main.cpp ) diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt index 63b047484d..533881d140 100644 --- a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt +++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt @@ -29,7 +29,7 @@ qt6_add_dbus_adaptor(car_SRCS car_adaptor ) # special case end -add_qt_gui_executable(car +qt_add_executable(car car.cpp car.h main.cpp ${car_SRCS} # special case diff --git a/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt index dab43f8076..f4f2443079 100644 --- a/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt +++ b/examples/dbus/remotecontrolledcar/controller/.prev_CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS DBus) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(controller +qt_add_executable(controller controller.cpp controller.h controller.ui main.cpp ) diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt index cca625fdea..d27d428b07 100644 --- a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt +++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt @@ -27,7 +27,7 @@ qt6_add_dbus_interface(controller_SRCS car_interface ) # special case end -add_qt_gui_executable(controller +qt_add_executable(controller controller.cpp controller.h controller.ui main.cpp ${controller_SRCS} # special case diff --git a/examples/embedded/digiflip/CMakeLists.txt b/examples/embedded/digiflip/CMakeLists.txt index d2476cfd54..d04ea3e37e 100644 --- a/examples/embedded/digiflip/CMakeLists.txt +++ b/examples/embedded/digiflip/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(digiflip +qt_add_executable(digiflip digiflip.cpp ) target_link_libraries(digiflip PUBLIC diff --git a/examples/embedded/flickable/CMakeLists.txt b/examples/embedded/flickable/CMakeLists.txt index 6a61d1968b..d77a31b55e 100644 --- a/examples/embedded/flickable/CMakeLists.txt +++ b/examples/embedded/flickable/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(flickable +qt_add_executable(flickable flickable.cpp flickable.h main.cpp ) diff --git a/examples/embedded/flightinfo/CMakeLists.txt b/examples/embedded/flightinfo/CMakeLists.txt index 4daf7d86c7..bd6539a2f4 100644 --- a/examples/embedded/flightinfo/CMakeLists.txt +++ b/examples/embedded/flightinfo/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(flightinfo +qt_add_executable(flightinfo flightinfo.cpp form.ui ) diff --git a/examples/embedded/lightmaps/CMakeLists.txt b/examples/embedded/lightmaps/CMakeLists.txt index fb15654650..bdb9ec4a33 100644 --- a/examples/embedded/lightmaps/CMakeLists.txt +++ b/examples/embedded/lightmaps/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(lightmaps +qt_add_executable(lightmaps lightmaps.cpp lightmaps.h main.cpp mapzoom.cpp mapzoom.h diff --git a/examples/embedded/raycasting/CMakeLists.txt b/examples/embedded/raycasting/CMakeLists.txt index 05ba985f05..69de5d29ff 100644 --- a/examples/embedded/raycasting/CMakeLists.txt +++ b/examples/embedded/raycasting/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(raycasting +qt_add_executable(raycasting raycasting.cpp ) target_link_libraries(raycasting PUBLIC diff --git a/examples/embedded/styleexample/CMakeLists.txt b/examples/embedded/styleexample/CMakeLists.txt index 2b78a40d32..659c0a5f65 100644 --- a/examples/embedded/styleexample/CMakeLists.txt +++ b/examples/embedded/styleexample/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(styleexample +qt_add_executable(styleexample main.cpp stylewidget.cpp stylewidget.h stylewidget.ui ) diff --git a/examples/gui/analogclock/.prev_CMakeLists.txt b/examples/gui/analogclock/.prev_CMakeLists.txt index 1118dde9e4..1a0a5fdf97 100644 --- a/examples/gui/analogclock/.prev_CMakeLists.txt +++ b/examples/gui/analogclock/.prev_CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/analogclock") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(analogclock +qt_add_executable(analogclock ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h main.cpp ) diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt index 30ff6e5c8f..191facbc78 100644 --- a/examples/gui/analogclock/CMakeLists.txt +++ b/examples/gui/analogclock/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) # special case: add -add_qt_gui_executable(gui_analogclock # special case: renamed target +qt_add_executable(gui_analogclock # special case: renamed target ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h main.cpp ) diff --git a/examples/gui/rasterwindow/.prev_CMakeLists.txt b/examples/gui/rasterwindow/.prev_CMakeLists.txt index 9ad1fcdb2d..53269112f6 100644 --- a/examples/gui/rasterwindow/.prev_CMakeLists.txt +++ b/examples/gui/rasterwindow/.prev_CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/rasterwindow") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(rasterwindow +qt_add_executable(rasterwindow main.cpp rasterwindow.cpp rasterwindow.h ) diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt index 4d78f10f89..26884471d1 100644 --- a/examples/gui/rasterwindow/CMakeLists.txt +++ b/examples/gui/rasterwindow/CMakeLists.txt @@ -20,7 +20,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/gui/rasterwindow") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(rasterwindow +qt_add_executable(rasterwindow main.cpp rasterwindow.cpp rasterwindow.h ) diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt index a138773498..9aed449b3b 100644 --- a/examples/network/blockingfortuneclient/CMakeLists.txt +++ b/examples/network/blockingfortuneclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(blockingfortuneclient +qt_add_executable(blockingfortuneclient blockingclient.cpp blockingclient.h fortunethread.cpp fortunethread.h main.cpp diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt index 47497988ad..d24bcdf304 100644 --- a/examples/network/broadcastreceiver/CMakeLists.txt +++ b/examples/network/broadcastreceiver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(broadcastreceiver +qt_add_executable(broadcastreceiver main.cpp receiver.cpp receiver.h ) diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt index 2de88f3cb5..a7e243ad58 100644 --- a/examples/network/broadcastsender/CMakeLists.txt +++ b/examples/network/broadcastsender/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(broadcastsender +qt_add_executable(broadcastsender main.cpp sender.cpp sender.h ) diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt index fb2b272810..5426aca565 100644 --- a/examples/network/dnslookup/CMakeLists.txt +++ b/examples/network/dnslookup/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/dnslookup") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Network) -add_executable(dnslookup +qt_add_executable(dnslookup dnslookup.cpp dnslookup.h ) target_link_libraries(dnslookup PUBLIC diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt index 8328b99cba..4c05703be5 100644 --- a/examples/network/download/CMakeLists.txt +++ b/examples/network/download/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/download") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Network) -add_executable(download +qt_add_executable(download main.cpp ) target_link_libraries(download PUBLIC diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt index f1eddc7b14..d5e065dd8d 100644 --- a/examples/network/downloadmanager/CMakeLists.txt +++ b/examples/network/downloadmanager/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/network/downloadmanager") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Network) -add_executable(downloadmanager +qt_add_executable(downloadmanager downloadmanager.cpp downloadmanager.h main.cpp textprogressbar.cpp textprogressbar.h diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt index b504a621d2..27a41dacc9 100644 --- a/examples/network/fortuneclient/CMakeLists.txt +++ b/examples/network/fortuneclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(fortuneclient +qt_add_executable(fortuneclient client.cpp client.h main.cpp ) diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt index 9318c53bb6..3147d9aeab 100644 --- a/examples/network/fortuneserver/CMakeLists.txt +++ b/examples/network/fortuneserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(fortuneserver +qt_add_executable(fortuneserver main.cpp server.cpp server.h ) diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt index ea5fecb6b2..2f8d244c7b 100644 --- a/examples/network/googlesuggest/CMakeLists.txt +++ b/examples/network/googlesuggest/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(googlesuggest +qt_add_executable(googlesuggest googlesuggest.cpp googlesuggest.h main.cpp searchbox.cpp searchbox.h diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt index d7ad5adaa6..77bcbe675b 100644 --- a/examples/network/http/CMakeLists.txt +++ b/examples/network/http/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(http +qt_add_executable(http authenticationdialog.ui httpwindow.cpp httpwindow.h main.cpp diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt index c3dc2ea559..d41fd0e83b 100644 --- a/examples/network/loopback/CMakeLists.txt +++ b/examples/network/loopback/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(loopback +qt_add_executable(loopback dialog.cpp dialog.h main.cpp ) diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt index c46bb88c79..6ae83f8ab2 100644 --- a/examples/network/multicastreceiver/CMakeLists.txt +++ b/examples/network/multicastreceiver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(multicastreceiver +qt_add_executable(multicastreceiver main.cpp receiver.cpp receiver.h ) diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt index 6aec72cb92..572d48f664 100644 --- a/examples/network/multicastsender/CMakeLists.txt +++ b/examples/network/multicastsender/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(multicastsender +qt_add_executable(multicastsender main.cpp sender.cpp sender.h ) diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt index 482d4938e9..258e244856 100644 --- a/examples/network/multistreamclient/CMakeLists.txt +++ b/examples/network/multistreamclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(multistreamclient +qt_add_executable(multistreamclient chatconsumer.cpp chatconsumer.h client.cpp client.h consumer.h diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt index 1563084cbd..c640750276 100644 --- a/examples/network/multistreamserver/CMakeLists.txt +++ b/examples/network/multistreamserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(multistreamserver +qt_add_executable(multistreamserver chatprovider.cpp chatprovider.h main.cpp movieprovider.cpp movieprovider.h diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt index 065d01a47e..0b317278cd 100644 --- a/examples/network/network-chat/CMakeLists.txt +++ b/examples/network/network-chat/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(network-chat +qt_add_executable(network-chat chatdialog.cpp chatdialog.h chatdialog.ui client.cpp client.h connection.cpp connection.h diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt index 3909009ff5..8b2e3888c2 100644 --- a/examples/network/securesocketclient/CMakeLists.txt +++ b/examples/network/securesocketclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(securesocketclient +qt_add_executable(securesocketclient certificateinfo.cpp certificateinfo.h certificateinfo.ui main.cpp sslclient.cpp sslclient.h sslclient.ui diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt index 0aac05a9ce..9168798e20 100644 --- a/examples/network/secureudpclient/CMakeLists.txt +++ b/examples/network/secureudpclient/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Network) -add_qt_gui_executable(secureudpclient +qt_add_executable(secureudpclient addressdialog.cpp addressdialog.h addressdialog.ui association.cpp association.h main.cpp diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt index ecb39244e9..3a21910c99 100644 --- a/examples/network/secureudpserver/CMakeLists.txt +++ b/examples/network/secureudpserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Network) -add_qt_gui_executable(secureudpserver +qt_add_executable(secureudpserver main.cpp mainwindow.cpp mainwindow.h mainwindow.ui nicselector.cpp nicselector.h nicselector.ui diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt index a6f044b927..45940baad8 100644 --- a/examples/network/threadedfortuneserver/CMakeLists.txt +++ b/examples/network/threadedfortuneserver/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(threadedfortuneserver +qt_add_executable(threadedfortuneserver dialog.cpp dialog.h fortuneserver.cpp fortuneserver.h fortunethread.cpp fortunethread.h diff --git a/examples/network/torrent/.prev_CMakeLists.txt b/examples/network/torrent/.prev_CMakeLists.txt index bc2484d4ce..9411bdc1d4 100644 --- a/examples/network/torrent/.prev_CMakeLists.txt +++ b/examples/network/torrent/.prev_CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(torrent +qt_add_executable(torrent addtorrentdialog.cpp addtorrentdialog.h bencodeparser.cpp bencodeparser.h connectionmanager.cpp connectionmanager.h diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt index 4c175fe1df..0766d208b7 100644 --- a/examples/network/torrent/CMakeLists.txt +++ b/examples/network/torrent/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(torrent +qt_add_executable(torrent addtorrentdialog.cpp addtorrentdialog.h bencodeparser.cpp bencodeparser.h connectionmanager.cpp connectionmanager.h diff --git a/examples/opengl/2dpainting/CMakeLists.txt b/examples/opengl/2dpainting/CMakeLists.txt index c8192dc5ed..675a254070 100644 --- a/examples/opengl/2dpainting/CMakeLists.txt +++ b/examples/opengl/2dpainting/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(2dpainting +qt_add_executable(2dpainting glwidget.cpp glwidget.h helper.cpp helper.h main.cpp diff --git a/examples/opengl/computegles31/CMakeLists.txt b/examples/opengl/computegles31/CMakeLists.txt index 5960b349d4..1e9ac0ce1c 100644 --- a/examples/opengl/computegles31/CMakeLists.txt +++ b/examples/opengl/computegles31/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(computegles31 +qt_add_executable(computegles31 glwindow.cpp glwindow.h main.cpp ) diff --git a/examples/opengl/contextinfo/CMakeLists.txt b/examples/opengl/contextinfo/CMakeLists.txt index d3c31c856e..4e444ee60c 100644 --- a/examples/opengl/contextinfo/CMakeLists.txt +++ b/examples/opengl/contextinfo/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(contextinfo +qt_add_executable(contextinfo main.cpp renderwindow.cpp renderwindow.h widget.cpp widget.h diff --git a/examples/opengl/cube/CMakeLists.txt b/examples/opengl/cube/CMakeLists.txt index 29b8f1ff56..cd247f01ce 100644 --- a/examples/opengl/cube/CMakeLists.txt +++ b/examples/opengl/cube/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(cube +qt_add_executable(cube geometryengine.cpp geometryengine.h main.cpp mainwidget.cpp mainwidget.h diff --git a/examples/opengl/hellogl2/CMakeLists.txt b/examples/opengl/hellogl2/CMakeLists.txt index 2647d5c364..c5bbb54fc6 100644 --- a/examples/opengl/hellogl2/CMakeLists.txt +++ b/examples/opengl/hellogl2/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(hellogl2 +qt_add_executable(hellogl2 glwidget.cpp glwidget.h logo.cpp logo.h main.cpp diff --git a/examples/opengl/hellogles3/CMakeLists.txt b/examples/opengl/hellogles3/CMakeLists.txt index 7595e9116a..a7c36e6419 100644 --- a/examples/opengl/hellogles3/CMakeLists.txt +++ b/examples/opengl/hellogles3/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(hellogles3 +qt_add_executable(hellogles3 ../hellogl2/logo.cpp ../hellogl2/logo.h glwindow.cpp glwindow.h main.cpp diff --git a/examples/opengl/hellowindow/CMakeLists.txt b/examples/opengl/hellowindow/CMakeLists.txt index 83cd5cb758..293b46ec57 100644 --- a/examples/opengl/hellowindow/CMakeLists.txt +++ b/examples/opengl/hellowindow/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(hellowindow +qt_add_executable(hellowindow hellowindow.cpp hellowindow.h main.cpp ) diff --git a/examples/opengl/openglwindow/CMakeLists.txt b/examples/opengl/openglwindow/CMakeLists.txt index bebdf0c195..816aa87a4d 100644 --- a/examples/opengl/openglwindow/CMakeLists.txt +++ b/examples/opengl/openglwindow/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(openglwindow +qt_add_executable(openglwindow main.cpp openglwindow.cpp openglwindow.h ) diff --git a/examples/opengl/paintedwindow/CMakeLists.txt b/examples/opengl/paintedwindow/CMakeLists.txt index 047174fb9e..2752ed40c0 100644 --- a/examples/opengl/paintedwindow/CMakeLists.txt +++ b/examples/opengl/paintedwindow/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(paintedwindow +qt_add_executable(paintedwindow main.cpp paintedwindow.cpp paintedwindow.h ) diff --git a/examples/opengl/qopenglwidget/CMakeLists.txt b/examples/opengl/qopenglwidget/CMakeLists.txt index c42251e4f2..055ea904f5 100644 --- a/examples/opengl/qopenglwidget/CMakeLists.txt +++ b/examples/opengl/qopenglwidget/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(qopenglwidget +qt_add_executable(qopenglwidget bubble.cpp bubble.h glwidget.cpp glwidget.h main.cpp diff --git a/examples/opengl/qopenglwindow/CMakeLists.txt b/examples/opengl/qopenglwindow/CMakeLists.txt index c3fcfb855d..969b9d7e0c 100644 --- a/examples/opengl/qopenglwindow/CMakeLists.txt +++ b/examples/opengl/qopenglwindow/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(qopenglwindow +qt_add_executable(qopenglwindow background_renderer.cpp background_renderer.h main.cpp ) diff --git a/examples/opengl/textures/CMakeLists.txt b/examples/opengl/textures/CMakeLists.txt index 0fcbffb524..502ac9cef1 100644 --- a/examples/opengl/textures/CMakeLists.txt +++ b/examples/opengl/textures/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(textures +qt_add_executable(textures glwidget.cpp glwidget.h main.cpp window.cpp window.h diff --git a/examples/opengl/threadedqopenglwidget/CMakeLists.txt b/examples/opengl/threadedqopenglwidget/CMakeLists.txt index 4a03def63c..60f121abf5 100644 --- a/examples/opengl/threadedqopenglwidget/CMakeLists.txt +++ b/examples/opengl/threadedqopenglwidget/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) find_package(Qt6 COMPONENTS OpenGLWidgets) -add_qt_gui_executable(threadedqopenglwidget +qt_add_executable(threadedqopenglwidget glwidget.cpp glwidget.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/qpa/qrasterwindow/CMakeLists.txt b/examples/qpa/qrasterwindow/CMakeLists.txt index 4e3444d0b7..0352c464f7 100644 --- a/examples/qpa/qrasterwindow/CMakeLists.txt +++ b/examples/qpa/qrasterwindow/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(qrasterwindow +qt_add_executable(qrasterwindow main.cpp ) target_link_libraries(qrasterwindow PUBLIC diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt index 93d3d519fd..5013769f54 100644 --- a/examples/qpa/windows/CMakeLists.txt +++ b/examples/qpa/windows/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qpa/windows") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_executable(windows +qt_add_executable(windows main.cpp window.cpp window.h ) diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt index 350261d0a4..8956f8a2a1 100644 --- a/examples/qtconcurrent/imagescaling/CMakeLists.txt +++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(imagescaling +qt_add_executable(imagescaling imagescaling.cpp imagescaling.h main.cpp ) diff --git a/examples/qtconcurrent/map/.prev_CMakeLists.txt b/examples/qtconcurrent/map/.prev_CMakeLists.txt index 65ff5ad455..5ab5b093a4 100644 --- a/examples/qtconcurrent/map/.prev_CMakeLists.txt +++ b/examples/qtconcurrent/map/.prev_CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) -add_executable(mapdemo +qt_add_executable(mapdemo main.cpp ) target_link_libraries(mapdemo PUBLIC diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt index 8cf29e25b7..3a977eeaaf 100644 --- a/examples/qtconcurrent/map/CMakeLists.txt +++ b/examples/qtconcurrent/map/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) -add_executable(mapdemo +qt_add_executable(mapdemo main.cpp ) target_link_libraries(mapdemo PUBLIC diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt index f1c07b7824..d91ba64b91 100644 --- a/examples/qtconcurrent/progressdialog/CMakeLists.txt +++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) find_package(Qt6 COMPONENTS Widgets) -add_executable(progressdialog +qt_add_executable(progressdialog main.cpp ) target_link_libraries(progressdialog PUBLIC diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt index 088d23c32b..ffd5b904c9 100644 --- a/examples/qtconcurrent/runfunction/CMakeLists.txt +++ b/examples/qtconcurrent/runfunction/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) find_package(Qt6 COMPONENTS Widgets) -add_executable(runfunction +qt_add_executable(runfunction main.cpp ) target_link_libraries(runfunction PUBLIC diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt index 440b313926..b3636fca76 100644 --- a/examples/qtconcurrent/wordcount/CMakeLists.txt +++ b/examples/qtconcurrent/wordcount/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Concurrent) find_package(Qt6 COMPONENTS Widgets) -add_executable(wordcount +qt_add_executable(wordcount main.cpp ) target_link_libraries(wordcount PUBLIC diff --git a/examples/qtestlib/tutorial1/CMakeLists.txt b/examples/qtestlib/tutorial1/CMakeLists.txt index 1c3e0f5440..c37bf3a46e 100644 --- a/examples/qtestlib/tutorial1/CMakeLists.txt +++ b/examples/qtestlib/tutorial1/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Test) -add_executable(tutorial1 +qt_add_executable(tutorial1 testqstring.cpp ) target_link_libraries(tutorial1 PUBLIC diff --git a/examples/qtestlib/tutorial2/CMakeLists.txt b/examples/qtestlib/tutorial2/CMakeLists.txt index fd62980f25..104578bfb9 100644 --- a/examples/qtestlib/tutorial2/CMakeLists.txt +++ b/examples/qtestlib/tutorial2/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Test) -add_executable(tutorial2 +qt_add_executable(tutorial2 testqstring.cpp ) target_link_libraries(tutorial2 PUBLIC diff --git a/examples/qtestlib/tutorial3/CMakeLists.txt b/examples/qtestlib/tutorial3/CMakeLists.txt index 08d5c3318d..90c79818d0 100644 --- a/examples/qtestlib/tutorial3/CMakeLists.txt +++ b/examples/qtestlib/tutorial3/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Test) -add_executable(tutorial3 +qt_add_executable(tutorial3 testgui.cpp ) target_link_libraries(tutorial3 PUBLIC diff --git a/examples/qtestlib/tutorial4/CMakeLists.txt b/examples/qtestlib/tutorial4/CMakeLists.txt index e4b99ad754..9a3cc59876 100644 --- a/examples/qtestlib/tutorial4/CMakeLists.txt +++ b/examples/qtestlib/tutorial4/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Test) -add_executable(tutorial4 +qt_add_executable(tutorial4 testgui.cpp ) target_link_libraries(tutorial4 PUBLIC diff --git a/examples/qtestlib/tutorial5/CMakeLists.txt b/examples/qtestlib/tutorial5/CMakeLists.txt index a2f51a08c7..d967eb2382 100644 --- a/examples/qtestlib/tutorial5/CMakeLists.txt +++ b/examples/qtestlib/tutorial5/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Test) -add_executable(tutorial5 +qt_add_executable(tutorial5 benchmarking.cpp ) target_link_libraries(tutorial5 PUBLIC diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt index 92205f8325..3787ee758b 100644 --- a/examples/sql/books/CMakeLists.txt +++ b/examples/sql/books/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(books +qt_add_executable(books bookdelegate.cpp bookdelegate.h bookwindow.cpp bookwindow.h bookwindow.ui initdb.h diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt index b67a418b1d..4806ef2196 100644 --- a/examples/sql/cachedtable/CMakeLists.txt +++ b/examples/sql/cachedtable/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(cachedtable +qt_add_executable(cachedtable ../connection.h main.cpp tableeditor.cpp tableeditor.h diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt index d8bcd52953..b27e6c4052 100644 --- a/examples/sql/drilldown/CMakeLists.txt +++ b/examples/sql/drilldown/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(drilldown +qt_add_executable(drilldown ../connection.h imageitem.cpp imageitem.h informationwindow.cpp informationwindow.h diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt index 62c97fc074..8a9a6c4d7d 100644 --- a/examples/sql/masterdetail/CMakeLists.txt +++ b/examples/sql/masterdetail/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Xml) -add_qt_gui_executable(masterdetail +qt_add_executable(masterdetail database.h dialog.cpp dialog.h main.cpp diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt index 94c3dd324c..877ccabf60 100644 --- a/examples/sql/querymodel/CMakeLists.txt +++ b/examples/sql/querymodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(querymodel +qt_add_executable(querymodel ../connection.h customsqlmodel.cpp customsqlmodel.h editablesqlmodel.cpp editablesqlmodel.h diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt index dcf39bb1c4..a0a7ca4d03 100644 --- a/examples/sql/relationaltablemodel/CMakeLists.txt +++ b/examples/sql/relationaltablemodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(relationaltablemodel +qt_add_executable(relationaltablemodel ../connection.h relationaltablemodel.cpp ) diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt index 1de8662b26..f027e6fdbf 100644 --- a/examples/sql/sqlbrowser/CMakeLists.txt +++ b/examples/sql/sqlbrowser/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(sqlbrowser +qt_add_executable(sqlbrowser browser.cpp browser.h browserwidget.ui connectionwidget.cpp connectionwidget.h diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt index 79f4442d92..95d3e4c7e7 100644 --- a/examples/sql/sqlwidgetmapper/CMakeLists.txt +++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(sqlwidgetmapper +qt_add_executable(sqlwidgetmapper main.cpp window.cpp window.h ) diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt index 6de08f6c1a..4136592493 100644 --- a/examples/sql/tablemodel/CMakeLists.txt +++ b/examples/sql/tablemodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Sql) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(tablemodel +qt_add_executable(tablemodel ../connection.h tablemodel.cpp ) diff --git a/examples/vulkan/hellovulkancubes/CMakeLists.txt b/examples/vulkan/hellovulkancubes/CMakeLists.txt index ebfd066d1f..01a1e32557 100644 --- a/examples/vulkan/hellovulkancubes/CMakeLists.txt +++ b/examples/vulkan/hellovulkancubes/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Concurrent) -add_qt_gui_executable(hellovulkancubes +qt_add_executable(hellovulkancubes camera.cpp camera.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/vulkan/hellovulkantexture/CMakeLists.txt b/examples/vulkan/hellovulkantexture/CMakeLists.txt index 9c7a5fafd9..25cf1ae484 100644 --- a/examples/vulkan/hellovulkantexture/CMakeLists.txt +++ b/examples/vulkan/hellovulkantexture/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantexture") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(hellovulkantexture +qt_add_executable(hellovulkantexture hellovulkantexture.cpp hellovulkantexture.h main.cpp ) diff --git a/examples/vulkan/hellovulkantriangle/CMakeLists.txt b/examples/vulkan/hellovulkantriangle/CMakeLists.txt index e8003515cd..c6db88838f 100644 --- a/examples/vulkan/hellovulkantriangle/CMakeLists.txt +++ b/examples/vulkan/hellovulkantriangle/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkantriangle") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(hellovulkantriangle +qt_add_executable(hellovulkantriangle ../shared/trianglerenderer.cpp ../shared/trianglerenderer.h main.cpp ) diff --git a/examples/vulkan/hellovulkanwidget/CMakeLists.txt b/examples/vulkan/hellovulkanwidget/CMakeLists.txt index cee9da8711..72ac084900 100644 --- a/examples/vulkan/hellovulkanwidget/CMakeLists.txt +++ b/examples/vulkan/hellovulkanwidget/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(hellovulkanwidget +qt_add_executable(hellovulkanwidget ../shared/trianglerenderer.cpp ../shared/trianglerenderer.h hellovulkanwidget.cpp hellovulkanwidget.h main.cpp diff --git a/examples/vulkan/hellovulkanwindow/CMakeLists.txt b/examples/vulkan/hellovulkanwindow/CMakeLists.txt index 9aed2678f3..e5f5fea35a 100644 --- a/examples/vulkan/hellovulkanwindow/CMakeLists.txt +++ b/examples/vulkan/hellovulkanwindow/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/vulkan/hellovulkanwindow") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(hellovulkanwindow +qt_add_executable(hellovulkanwindow hellovulkanwindow.cpp hellovulkanwindow.h main.cpp ) diff --git a/examples/widgets/animation/easing/CMakeLists.txt b/examples/widgets/animation/easing/CMakeLists.txt index 120d624212..107cae5a09 100644 --- a/examples/widgets/animation/easing/CMakeLists.txt +++ b/examples/widgets/animation/easing/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(easing +qt_add_executable(easing animation.h form.ui main.cpp diff --git a/examples/widgets/desktop/screenshot/CMakeLists.txt b/examples/widgets/desktop/screenshot/CMakeLists.txt index 6e07c3619b..979dee6ca7 100644 --- a/examples/widgets/desktop/screenshot/CMakeLists.txt +++ b/examples/widgets/desktop/screenshot/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(screenshot +qt_add_executable(screenshot main.cpp screenshot.cpp screenshot.h ) diff --git a/examples/widgets/desktop/systray/CMakeLists.txt b/examples/widgets/desktop/systray/CMakeLists.txt index 369d155380..7c813a8667 100644 --- a/examples/widgets/desktop/systray/CMakeLists.txt +++ b/examples/widgets/desktop/systray/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(systray +qt_add_executable(systray main.cpp window.cpp window.h ) diff --git a/examples/widgets/dialogs/classwizard/CMakeLists.txt b/examples/widgets/dialogs/classwizard/CMakeLists.txt index da17199827..ebbc8d0652 100644 --- a/examples/widgets/dialogs/classwizard/CMakeLists.txt +++ b/examples/widgets/dialogs/classwizard/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(classwizard +qt_add_executable(classwizard classwizard.cpp classwizard.h main.cpp ) diff --git a/examples/widgets/dialogs/extension/CMakeLists.txt b/examples/widgets/dialogs/extension/CMakeLists.txt index ed1aabc3c4..a1f42276da 100644 --- a/examples/widgets/dialogs/extension/CMakeLists.txt +++ b/examples/widgets/dialogs/extension/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(extension +qt_add_executable(extension finddialog.cpp finddialog.h main.cpp ) diff --git a/examples/widgets/dialogs/findfiles/CMakeLists.txt b/examples/widgets/dialogs/findfiles/CMakeLists.txt index c8c1cf9bc1..870a9d8409 100644 --- a/examples/widgets/dialogs/findfiles/CMakeLists.txt +++ b/examples/widgets/dialogs/findfiles/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(findfiles +qt_add_executable(findfiles main.cpp window.cpp window.h ) diff --git a/examples/widgets/dialogs/licensewizard/CMakeLists.txt b/examples/widgets/dialogs/licensewizard/CMakeLists.txt index 51e1d3b5ce..b26c8aafd7 100644 --- a/examples/widgets/dialogs/licensewizard/CMakeLists.txt +++ b/examples/widgets/dialogs/licensewizard/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS PrintSupport) -add_qt_gui_executable(licensewizard +qt_add_executable(licensewizard licensewizard.cpp licensewizard.h main.cpp ) diff --git a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt index 9651889d36..74fca2a343 100644 --- a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt +++ b/examples/widgets/dialogs/standarddialogs/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(standarddialogs +qt_add_executable(standarddialogs dialog.cpp dialog.h main.cpp ) diff --git a/examples/widgets/dialogs/tabdialog/CMakeLists.txt b/examples/widgets/dialogs/tabdialog/CMakeLists.txt index 3ae2bc5028..a93563ef9c 100644 --- a/examples/widgets/dialogs/tabdialog/CMakeLists.txt +++ b/examples/widgets/dialogs/tabdialog/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(tabdialog +qt_add_executable(tabdialog main.cpp tabdialog.cpp tabdialog.h ) diff --git a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt index 547a4c0c33..684981d16e 100644 --- a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt +++ b/examples/widgets/dialogs/trivialwizard/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(trivialwizard +qt_add_executable(trivialwizard trivialwizard.cpp ) target_link_libraries(trivialwizard PUBLIC diff --git a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt index 74ebc879ce..938365315c 100644 --- a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt +++ b/examples/widgets/draganddrop/draggableicons/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(draggableicons +qt_add_executable(draggableicons dragwidget.cpp dragwidget.h main.cpp ) diff --git a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt index 8b2e249b00..8ce6a2444a 100644 --- a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt +++ b/examples/widgets/draganddrop/draggabletext/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(draggabletext +qt_add_executable(draggabletext dragwidget.cpp dragwidget.h main.cpp ) diff --git a/examples/widgets/draganddrop/dropsite/CMakeLists.txt b/examples/widgets/draganddrop/dropsite/CMakeLists.txt index 0b4f725ba1..a139add5b2 100644 --- a/examples/widgets/draganddrop/dropsite/CMakeLists.txt +++ b/examples/widgets/draganddrop/dropsite/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(dropsite +qt_add_executable(dropsite droparea.cpp droparea.h dropsitewindow.cpp dropsitewindow.h main.cpp diff --git a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt index ea4c9047e0..bf0969b4b4 100644 --- a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt +++ b/examples/widgets/draganddrop/fridgemagnets/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(fridgemagnets +qt_add_executable(fridgemagnets draglabel.cpp draglabel.h dragwidget.cpp dragwidget.h main.cpp diff --git a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt b/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt index b7b6fa8373..cad4c02602 100644 --- a/examples/widgets/draganddrop/puzzle/.prev_CMakeLists.txt +++ b/examples/widgets/draganddrop/puzzle/.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(puzzle +qt_add_executable(puzzle main.cpp mainwindow.cpp mainwindow.h pieceslist.cpp pieceslist.h diff --git a/examples/widgets/draganddrop/puzzle/CMakeLists.txt b/examples/widgets/draganddrop/puzzle/CMakeLists.txt index 01c60cc684..a8f319b6bd 100644 --- a/examples/widgets/draganddrop/puzzle/CMakeLists.txt +++ b/examples/widgets/draganddrop/puzzle/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(draganddrop_puzzle # special case: renamed puzzle +qt_add_executable(draganddrop_puzzle # special case: renamed puzzle main.cpp mainwindow.cpp mainwindow.h pieceslist.cpp pieceslist.h diff --git a/examples/widgets/effects/blurpicker/CMakeLists.txt b/examples/widgets/effects/blurpicker/CMakeLists.txt index 1f1b6b934b..1a684b0e7d 100644 --- a/examples/widgets/effects/blurpicker/CMakeLists.txt +++ b/examples/widgets/effects/blurpicker/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(blurpicker +qt_add_executable(blurpicker blureffect.cpp blureffect.h blurpicker.cpp blurpicker.h main.cpp diff --git a/examples/widgets/effects/fademessage/CMakeLists.txt b/examples/widgets/effects/fademessage/CMakeLists.txt index b04df617d2..1b1b2ebb10 100644 --- a/examples/widgets/effects/fademessage/CMakeLists.txt +++ b/examples/widgets/effects/fademessage/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(fademessage +qt_add_executable(fademessage fademessage.cpp fademessage.h main.cpp ) diff --git a/examples/widgets/gallery/CMakeLists.txt b/examples/widgets/gallery/CMakeLists.txt index 0ad292853e..156e61a18b 100644 --- a/examples/widgets/gallery/CMakeLists.txt +++ b/examples/widgets/gallery/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(gallery +qt_add_executable(gallery main.cpp widgetgallery.cpp widgetgallery.h ) diff --git a/examples/widgets/gestures/imagegestures/CMakeLists.txt b/examples/widgets/gestures/imagegestures/CMakeLists.txt index b3c78e3349..eeb4bc511c 100644 --- a/examples/widgets/gestures/imagegestures/CMakeLists.txt +++ b/examples/widgets/gestures/imagegestures/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(imagegestures +qt_add_executable(imagegestures imagewidget.cpp imagewidget.h main.cpp mainwidget.cpp mainwidget.h diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt index bf37edacaf..a6d5aaf9d7 100644 --- a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/anchorlayout/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(anchorlayout +qt_add_executable(anchorlayout main.cpp ) target_link_libraries(anchorlayout PUBLIC diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt index 3e5ea4d867..3f96953aba 100644 --- a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt +++ b/examples/widgets/graphicsview/basicgraphicslayouts/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(basicgraphicslayouts +qt_add_executable(basicgraphicslayouts layoutitem.cpp layoutitem.h main.cpp window.cpp window.h diff --git a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt b/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt index 59ff14f6d4..d03c78fc70 100644 --- a/examples/widgets/graphicsview/chip/.prev_CMakeLists.txt +++ b/examples/widgets/graphicsview/chip/.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(chip +qt_add_executable(chip chip.cpp chip.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt index e88d1fe369..3a892dca26 100644 --- a/examples/widgets/graphicsview/chip/CMakeLists.txt +++ b/examples/widgets/graphicsview/chip/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) # special case find_package(Qt6 COMPONENTS PrintSupport) # special case -add_qt_gui_executable(chip +qt_add_executable(chip chip.cpp chip.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt index fa7faa7737..b50e941c35 100644 --- a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt +++ b/examples/widgets/graphicsview/collidingmice/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(collidingmice +qt_add_executable(collidingmice main.cpp mouse.cpp mouse.h ) diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt index 9efaf3abc0..4923c76ab7 100644 --- a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt +++ b/examples/widgets/graphicsview/diagramscene/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(diagramscene +qt_add_executable(diagramscene arrow.cpp arrow.h diagramitem.cpp diagramitem.h diagramscene.cpp diagramscene.h diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt index 5ae6fdb27a..0335ad4f2d 100644 --- a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt +++ b/examples/widgets/graphicsview/dragdroprobot/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(dragdroprobot +qt_add_executable(dragdroprobot coloritem.cpp coloritem.h main.cpp robot.cpp robot.h diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt index 6d0c87b131..efb4d986bd 100644 --- a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt +++ b/examples/widgets/graphicsview/elasticnodes/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(elasticnodes +qt_add_executable(elasticnodes edge.cpp edge.h graphwidget.cpp graphwidget.h main.cpp diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt index ea99825421..316da4cd90 100644 --- a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt +++ b/examples/widgets/graphicsview/embeddeddialogs/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(embeddeddialogs +qt_add_executable(embeddeddialogs customproxy.cpp customproxy.h embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui main.cpp diff --git a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt index bef01a1f8f..82b8bee4c7 100644 --- a/examples/widgets/graphicsview/flowlayout/.prev_CMakeLists.txt +++ b/examples/widgets/graphicsview/flowlayout/.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(flowlayout +qt_add_executable(flowlayout flowlayout.cpp flowlayout.h main.cpp window.cpp window.h diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt index 984c231e50..368342f09c 100644 --- a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/flowlayout/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(graphicsview_flowlayout # special case: renamed flowlayout +qt_add_executable(graphicsview_flowlayout # special case: renamed flowlayout flowlayout.cpp flowlayout.h main.cpp window.cpp window.h diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt index 306a362c7b..73e9d2be8e 100644 --- a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/simpleanchorlayout/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(simpleanchorlayout +qt_add_executable(simpleanchorlayout main.cpp ) target_link_libraries(simpleanchorlayout PUBLIC diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt index b28aefe00b..e39bb95b8c 100644 --- a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/weatheranchorlayout/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(weatheranchorlayout +qt_add_executable(weatheranchorlayout main.cpp ) target_link_libraries(weatheranchorlayout PUBLIC diff --git a/examples/widgets/itemviews/addressbook/CMakeLists.txt b/examples/widgets/itemviews/addressbook/CMakeLists.txt index b3d8e37f34..54bc195588 100644 --- a/examples/widgets/itemviews/addressbook/CMakeLists.txt +++ b/examples/widgets/itemviews/addressbook/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(addressbook +qt_add_executable(addressbook adddialog.cpp adddialog.h addresswidget.cpp addresswidget.h main.cpp diff --git a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt index 478bb9f30d..55ce6024eb 100644 --- a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt +++ b/examples/widgets/itemviews/basicsortfiltermodel/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(basicsortfiltermodel +qt_add_executable(basicsortfiltermodel main.cpp window.cpp window.h ) diff --git a/examples/widgets/itemviews/chart/CMakeLists.txt b/examples/widgets/itemviews/chart/CMakeLists.txt index 3879b8f05e..533b6d2813 100644 --- a/examples/widgets/itemviews/chart/CMakeLists.txt +++ b/examples/widgets/itemviews/chart/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(chart +qt_add_executable(chart main.cpp mainwindow.cpp mainwindow.h pieview.cpp pieview.h diff --git a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt index d98c47a411..f974f88064 100644 --- a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt +++ b/examples/widgets/itemviews/coloreditorfactory/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(coloreditorfactory +qt_add_executable(coloreditorfactory colorlisteditor.cpp colorlisteditor.h main.cpp window.cpp window.h diff --git a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt index 8a1dc0b406..eab91ce57a 100644 --- a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt +++ b/examples/widgets/itemviews/combowidgetmapper/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(combowidgetmapper +qt_add_executable(combowidgetmapper main.cpp window.cpp window.h ) diff --git a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt index 62031c6414..9ad909f57c 100644 --- a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt +++ b/examples/widgets/itemviews/customsortfiltermodel/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(customsortfiltermodel +qt_add_executable(customsortfiltermodel filterwidget.cpp filterwidget.h main.cpp mysortfilterproxymodel.cpp mysortfilterproxymodel.h diff --git a/examples/widgets/itemviews/dirview/CMakeLists.txt b/examples/widgets/itemviews/dirview/CMakeLists.txt index d1d74c59e1..b99242bc2e 100644 --- a/examples/widgets/itemviews/dirview/CMakeLists.txt +++ b/examples/widgets/itemviews/dirview/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(dirview +qt_add_executable(dirview main.cpp ) target_link_libraries(dirview PUBLIC diff --git a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt index 585563a351..bd0a487d8f 100644 --- a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt +++ b/examples/widgets/itemviews/editabletreemodel/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(editabletreemodel +qt_add_executable(editabletreemodel main.cpp mainwindow.cpp mainwindow.h mainwindow.ui treeitem.cpp treeitem.h diff --git a/examples/widgets/itemviews/fetchmore/CMakeLists.txt b/examples/widgets/itemviews/fetchmore/CMakeLists.txt index 0ad7a5e19f..2a0df1dcce 100644 --- a/examples/widgets/itemviews/fetchmore/CMakeLists.txt +++ b/examples/widgets/itemviews/fetchmore/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(fetchmore +qt_add_executable(fetchmore filelistmodel.cpp filelistmodel.h main.cpp window.cpp window.h diff --git a/examples/widgets/itemviews/flattreeview/CMakeLists.txt b/examples/widgets/itemviews/flattreeview/CMakeLists.txt index e1a9dac0d2..88d881c223 100644 --- a/examples/widgets/itemviews/flattreeview/CMakeLists.txt +++ b/examples/widgets/itemviews/flattreeview/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(flattreeview +qt_add_executable(flattreeview main.cpp ) target_link_libraries(flattreeview PUBLIC diff --git a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt index 0703de1e8b..e824e8c4b2 100644 --- a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt +++ b/examples/widgets/itemviews/frozencolumn/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(frozencolumn +qt_add_executable(frozencolumn freezetablewidget.cpp freezetablewidget.h main.cpp ) diff --git a/examples/widgets/itemviews/interview/CMakeLists.txt b/examples/widgets/itemviews/interview/CMakeLists.txt index 56864a1813..5ed6aa998f 100644 --- a/examples/widgets/itemviews/interview/CMakeLists.txt +++ b/examples/widgets/itemviews/interview/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(interview +qt_add_executable(interview main.cpp model.cpp model.h ) diff --git a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt b/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt index 3da67b14de..68b90cffda 100644 --- a/examples/widgets/itemviews/pixelator/.prev_CMakeLists.txt +++ b/examples/widgets/itemviews/pixelator/.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(pixelator +qt_add_executable(pixelator imagemodel.cpp imagemodel.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/itemviews/pixelator/CMakeLists.txt b/examples/widgets/itemviews/pixelator/CMakeLists.txt index 99c95a4a59..87d5b9258e 100644 --- a/examples/widgets/itemviews/pixelator/CMakeLists.txt +++ b/examples/widgets/itemviews/pixelator/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(pixelator +qt_add_executable(pixelator imagemodel.cpp imagemodel.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt b/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt index 4ab4108445..90190126e7 100644 --- a/examples/widgets/itemviews/puzzle/.prev_CMakeLists.txt +++ b/examples/widgets/itemviews/puzzle/.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(puzzle +qt_add_executable(puzzle main.cpp mainwindow.cpp mainwindow.h piecesmodel.cpp piecesmodel.h diff --git a/examples/widgets/itemviews/puzzle/CMakeLists.txt b/examples/widgets/itemviews/puzzle/CMakeLists.txt index e1d1de1a34..03ece14a1e 100644 --- a/examples/widgets/itemviews/puzzle/CMakeLists.txt +++ b/examples/widgets/itemviews/puzzle/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(itemviews_puzzle # special case: renamed puzzle +qt_add_executable(itemviews_puzzle # special case: renamed puzzle main.cpp mainwindow.cpp mainwindow.h piecesmodel.cpp piecesmodel.h diff --git a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt index 7828b911e4..25c7200a54 100644 --- a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt +++ b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Xml) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(simpledommodel +qt_add_executable(simpledommodel domitem.cpp domitem.h dommodel.cpp dommodel.h main.cpp diff --git a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt index 54ab94eed6..73754e4474 100644 --- a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt +++ b/examples/widgets/itemviews/simpletreemodel/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(simpletreemodel +qt_add_executable(simpletreemodel main.cpp treeitem.cpp treeitem.h treemodel.cpp treemodel.h diff --git a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt index bceebf1676..c174fc65fa 100644 --- a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt +++ b/examples/widgets/itemviews/simplewidgetmapper/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(simplewidgetmapper +qt_add_executable(simplewidgetmapper main.cpp window.cpp window.h ) diff --git a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt index 3466ea1f6c..f682a5fa9a 100644 --- a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt +++ b/examples/widgets/itemviews/spinboxdelegate/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(spinboxdelegate +qt_add_executable(spinboxdelegate delegate.cpp delegate.h main.cpp ) diff --git a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt index 9a74c7d216..9f68485e2c 100644 --- a/examples/widgets/itemviews/spreadsheet/.prev_CMakeLists.txt +++ b/examples/widgets/itemviews/spreadsheet/.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(spreadsheet +qt_add_executable(spreadsheet main.cpp printview.cpp printview.h spreadsheet.cpp spreadsheet.h diff --git a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt index 44c3d557c7..54de00fe28 100644 --- a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt +++ b/examples/widgets/itemviews/spreadsheet/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(spreadsheet +qt_add_executable(spreadsheet main.cpp printview.cpp printview.h spreadsheet.cpp spreadsheet.h diff --git a/examples/widgets/itemviews/stardelegate/CMakeLists.txt b/examples/widgets/itemviews/stardelegate/CMakeLists.txt index 05b0fd105b..1b7d12c25e 100644 --- a/examples/widgets/itemviews/stardelegate/CMakeLists.txt +++ b/examples/widgets/itemviews/stardelegate/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(stardelegate +qt_add_executable(stardelegate main.cpp stardelegate.cpp stardelegate.h stareditor.cpp stareditor.h diff --git a/examples/widgets/itemviews/storageview/CMakeLists.txt b/examples/widgets/itemviews/storageview/CMakeLists.txt index ca6ef3bc26..bada4f175c 100644 --- a/examples/widgets/itemviews/storageview/CMakeLists.txt +++ b/examples/widgets/itemviews/storageview/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(storageview +qt_add_executable(storageview main.cpp storagemodel.cpp storagemodel.h ) diff --git a/examples/widgets/layouts/basiclayouts/CMakeLists.txt b/examples/widgets/layouts/basiclayouts/CMakeLists.txt index 5ffc4eafb4..b82cb71183 100644 --- a/examples/widgets/layouts/basiclayouts/CMakeLists.txt +++ b/examples/widgets/layouts/basiclayouts/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(basiclayouts +qt_add_executable(basiclayouts dialog.cpp dialog.h main.cpp ) diff --git a/examples/widgets/layouts/borderlayout/CMakeLists.txt b/examples/widgets/layouts/borderlayout/CMakeLists.txt index 247f2b60d8..7459228ce7 100644 --- a/examples/widgets/layouts/borderlayout/CMakeLists.txt +++ b/examples/widgets/layouts/borderlayout/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(borderlayout +qt_add_executable(borderlayout borderlayout.cpp borderlayout.h main.cpp window.cpp window.h diff --git a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt index ecf77a3f37..2c27f31b7c 100644 --- a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt +++ b/examples/widgets/layouts/dynamiclayouts/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(dynamiclayouts +qt_add_executable(dynamiclayouts dialog.cpp dialog.h main.cpp ) diff --git a/examples/widgets/layouts/flowlayout/CMakeLists.txt b/examples/widgets/layouts/flowlayout/CMakeLists.txt index 8ae7bca559..3c1973886a 100644 --- a/examples/widgets/layouts/flowlayout/CMakeLists.txt +++ b/examples/widgets/layouts/flowlayout/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(flowlayout +qt_add_executable(flowlayout flowlayout.cpp flowlayout.h main.cpp window.cpp window.h 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 ) diff --git a/examples/widgets/painting/affine/.prev_CMakeLists.txt b/examples/widgets/painting/affine/.prev_CMakeLists.txt index 9d0031d565..6f9cd7c61a 100644 --- a/examples/widgets/painting/affine/.prev_CMakeLists.txt +++ b/examples/widgets/painting/affine/.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(affine +qt_add_executable(affine ../shared/arthurstyle.cpp ../shared/arthurstyle.h ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h ../shared/hoverpoints.cpp ../shared/hoverpoints.h diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt index 8e51a925d2..73115feb9b 100644 --- a/examples/widgets/painting/affine/CMakeLists.txt +++ b/examples/widgets/painting/affine/CMakeLists.txt @@ -19,8 +19,13 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(affine - # special case: remove files from ../shared +qt_add_executable(affine + # special case begin + # remove files from ../shared + #../shared/arthurstyle.cpp ../shared/arthurstyle.h + #../shared/arthurwidgets.cpp ../shared/arthurwidgets.h + #../shared/hoverpoints.cpp ../shared/hoverpoints.h + # special case end main.cpp xform.cpp xform.h ) diff --git a/examples/widgets/painting/basicdrawing/CMakeLists.txt b/examples/widgets/painting/basicdrawing/CMakeLists.txt index 864ce8e740..8b65526457 100644 --- a/examples/widgets/painting/basicdrawing/CMakeLists.txt +++ b/examples/widgets/painting/basicdrawing/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(basicdrawing +qt_add_executable(basicdrawing main.cpp renderarea.cpp renderarea.h window.cpp window.h diff --git a/examples/widgets/painting/composition/.prev_CMakeLists.txt b/examples/widgets/painting/composition/.prev_CMakeLists.txt index a61e5fe2dd..244066db4e 100644 --- a/examples/widgets/painting/composition/.prev_CMakeLists.txt +++ b/examples/widgets/painting/composition/.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(composition +qt_add_executable(composition ../shared/arthurstyle.cpp ../shared/arthurstyle.h ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h ../shared/hoverpoints.cpp ../shared/hoverpoints.h diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt index 0b359735d2..252f48bc49 100644 --- a/examples/widgets/painting/composition/CMakeLists.txt +++ b/examples/widgets/painting/composition/CMakeLists.txt @@ -19,8 +19,13 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(composition - # special case: remove files from ../shared +qt_add_executable(composition + # special case begin + # remove files from ../shared + #../shared/arthurstyle.cpp ../shared/arthurstyle.h + #../shared/arthurwidgets.cpp ../shared/arthurwidgets.h + #../shared/hoverpoints.cpp ../shared/hoverpoints.h + # special case end composition.cpp composition.h main.cpp ) diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt index 6ce21e49d3..3458fd52f7 100644 --- a/examples/widgets/painting/concentriccircles/CMakeLists.txt +++ b/examples/widgets/painting/concentriccircles/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(concentriccircles +qt_add_executable(concentriccircles circlewidget.cpp circlewidget.h main.cpp window.cpp window.h diff --git a/examples/widgets/painting/deform/.prev_CMakeLists.txt b/examples/widgets/painting/deform/.prev_CMakeLists.txt index 9fc526fb61..fb803670c1 100644 --- a/examples/widgets/painting/deform/.prev_CMakeLists.txt +++ b/examples/widgets/painting/deform/.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(deform +qt_add_executable(deform ../shared/arthurstyle.cpp ../shared/arthurstyle.h ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h ../shared/hoverpoints.cpp ../shared/hoverpoints.h diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt index 56a54a41d8..d53f19edc6 100644 --- a/examples/widgets/painting/deform/CMakeLists.txt +++ b/examples/widgets/painting/deform/CMakeLists.txt @@ -19,8 +19,13 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(deform - # special case: remove files from ../shared +qt_add_executable(deform + # special case begin + # remove files from ../shared + #../shared/arthurstyle.cpp ../shared/arthurstyle.h + #../shared/arthurwidgets.cpp ../shared/arthurwidgets.h + #../shared/hoverpoints.cpp ../shared/hoverpoints.h + # special case end main.cpp pathdeform.cpp pathdeform.h ) diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt index adb1d42a9f..487152d1ed 100644 --- a/examples/widgets/painting/fontsampler/CMakeLists.txt +++ b/examples/widgets/painting/fontsampler/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(fontsampler +qt_add_executable(fontsampler main.cpp mainwindow.cpp mainwindow.h mainwindowbase.ui diff --git a/examples/widgets/painting/gradients/.prev_CMakeLists.txt b/examples/widgets/painting/gradients/.prev_CMakeLists.txt index 6ba984b3bd..5cb7e5b745 100644 --- a/examples/widgets/painting/gradients/.prev_CMakeLists.txt +++ b/examples/widgets/painting/gradients/.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(gradients +qt_add_executable(gradients ../shared/arthurstyle.cpp ../shared/arthurstyle.h ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h ../shared/hoverpoints.cpp ../shared/hoverpoints.h diff --git a/examples/widgets/painting/gradients/CMakeLists.txt b/examples/widgets/painting/gradients/CMakeLists.txt index 38c3a8fd9e..60da6b6e0f 100644 --- a/examples/widgets/painting/gradients/CMakeLists.txt +++ b/examples/widgets/painting/gradients/CMakeLists.txt @@ -19,8 +19,13 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(gradients - # special case: remove files from ../shared +qt_add_executable(gradients + # special case begin + # remove files from ../shared + #../shared/arthurstyle.cpp ../shared/arthurstyle.h + #../shared/arthurwidgets.cpp ../shared/arthurwidgets.h + #../shared/hoverpoints.cpp ../shared/hoverpoints.h + # special case end gradients.cpp gradients.h main.cpp ) diff --git a/examples/widgets/painting/imagecomposition/CMakeLists.txt b/examples/widgets/painting/imagecomposition/CMakeLists.txt index 37676e32e2..79c0fdd27b 100644 --- a/examples/widgets/painting/imagecomposition/CMakeLists.txt +++ b/examples/widgets/painting/imagecomposition/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(imagecomposition +qt_add_executable(imagecomposition imagecomposer.cpp imagecomposer.h main.cpp ) diff --git a/examples/widgets/painting/painterpaths/CMakeLists.txt b/examples/widgets/painting/painterpaths/CMakeLists.txt index 71a250ea18..6c867d5edb 100644 --- a/examples/widgets/painting/painterpaths/CMakeLists.txt +++ b/examples/widgets/painting/painterpaths/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(painterpaths +qt_add_executable(painterpaths main.cpp renderarea.cpp renderarea.h window.cpp window.h diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt index 655a6c95ed..bf54a9bd6c 100644 --- a/examples/widgets/painting/pathstroke/CMakeLists.txt +++ b/examples/widgets/painting/pathstroke/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(pathstroke +qt_add_executable(pathstroke ../shared/arthurstyle.cpp ../shared/arthurstyle.h ../shared/arthurwidgets.cpp ../shared/arthurwidgets.h ../shared/hoverpoints.cpp ../shared/hoverpoints.h diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt index edc27b8534..a885d76285 100644 --- a/examples/widgets/painting/transformations/CMakeLists.txt +++ b/examples/widgets/painting/transformations/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(transformations +qt_add_executable(transformations main.cpp renderarea.cpp renderarea.h window.cpp window.h diff --git a/examples/widgets/richtext/calendar/CMakeLists.txt b/examples/widgets/richtext/calendar/CMakeLists.txt index 0fd588b246..dbab2e2fe4 100644 --- a/examples/widgets/richtext/calendar/CMakeLists.txt +++ b/examples/widgets/richtext/calendar/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(calendar +qt_add_executable(calendar main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/richtext/orderform/CMakeLists.txt b/examples/widgets/richtext/orderform/CMakeLists.txt index ab5b59ec5d..d68274edef 100644 --- a/examples/widgets/richtext/orderform/CMakeLists.txt +++ b/examples/widgets/richtext/orderform/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(orderform +qt_add_executable(orderform detailsdialog.cpp detailsdialog.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt index 163efaf5ff..6139f73f54 100644 --- a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt +++ b/examples/widgets/richtext/syntaxhighlighter/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(syntaxhighlighter +qt_add_executable(syntaxhighlighter highlighter.cpp highlighter.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt b/examples/widgets/richtext/textedit/.prev_CMakeLists.txt index 7eb5f0aae9..14152519c1 100644 --- a/examples/widgets/richtext/textedit/.prev_CMakeLists.txt +++ b/examples/widgets/richtext/textedit/.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(textedit +qt_add_executable(textedit main.cpp textedit.cpp textedit.h ) diff --git a/examples/widgets/richtext/textedit/CMakeLists.txt b/examples/widgets/richtext/textedit/CMakeLists.txt index cd875f49c5..4bef3d69f6 100644 --- a/examples/widgets/richtext/textedit/CMakeLists.txt +++ b/examples/widgets/richtext/textedit/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(textedit +qt_add_executable(textedit main.cpp textedit.cpp textedit.h ) diff --git a/examples/widgets/scroller/graphicsview/CMakeLists.txt b/examples/widgets/scroller/graphicsview/CMakeLists.txt index 7520cf7914..afe934837a 100644 --- a/examples/widgets/scroller/graphicsview/CMakeLists.txt +++ b/examples/widgets/scroller/graphicsview/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(graphicsview +qt_add_executable(graphicsview main.cpp ) target_link_libraries(graphicsview PUBLIC diff --git a/examples/widgets/tools/completer/CMakeLists.txt b/examples/widgets/tools/completer/CMakeLists.txt index 18359e54e3..512d7a3864 100644 --- a/examples/widgets/tools/completer/CMakeLists.txt +++ b/examples/widgets/tools/completer/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(completer +qt_add_executable(completer fsmodel.cpp fsmodel.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/tools/customcompleter/CMakeLists.txt b/examples/widgets/tools/customcompleter/CMakeLists.txt index 1e8203b170..0c17aaaaf1 100644 --- a/examples/widgets/tools/customcompleter/CMakeLists.txt +++ b/examples/widgets/tools/customcompleter/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(customcompleter +qt_add_executable(customcompleter main.cpp mainwindow.cpp mainwindow.h textedit.cpp textedit.h diff --git a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt index a3a3201d7e..6bba4b9f77 100644 --- a/examples/widgets/tools/echoplugin/echowindow/.prev_CMakeLists.txt +++ b/examples/widgets/tools/echoplugin/echowindow/.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(echoplugin +qt_add_executable(echoplugin echointerface.h echowindow.cpp echowindow.h main.cpp diff --git a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt index f87513a70b..4ddd0bc4d7 100644 --- a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt +++ b/examples/widgets/tools/echoplugin/echowindow/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(echopluginwindow # special case: renamed target +qt_add_executable(echopluginwindow # special case: renamed target echointerface.h echowindow.cpp echowindow.h main.cpp diff --git a/examples/widgets/tools/i18n/CMakeLists.txt b/examples/widgets/tools/i18n/CMakeLists.txt index e01508229f..361453c8ad 100644 --- a/examples/widgets/tools/i18n/CMakeLists.txt +++ b/examples/widgets/tools/i18n/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(i18n +qt_add_executable(i18n languagechooser.cpp languagechooser.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt index 2ec3418964..db70d80ad6 100644 --- a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/app/.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(plugandpaint +qt_add_executable(plugandpaint interfaces.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt index 07f6810bd6..da4c568dc6 100644 --- a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/app/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(plugandpaint +qt_add_executable(plugandpaint interfaces.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/tools/regularexpression/CMakeLists.txt b/examples/widgets/tools/regularexpression/CMakeLists.txt index da31574e8b..7ffda47adb 100644 --- a/examples/widgets/tools/regularexpression/CMakeLists.txt +++ b/examples/widgets/tools/regularexpression/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(regularexpression +qt_add_executable(regularexpression main.cpp regularexpressiondialog.cpp regularexpressiondialog.h ) diff --git a/examples/widgets/tools/settingseditor/CMakeLists.txt b/examples/widgets/tools/settingseditor/CMakeLists.txt index 957d0a0fa8..eda21b71e2 100644 --- a/examples/widgets/tools/settingseditor/CMakeLists.txt +++ b/examples/widgets/tools/settingseditor/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(settingseditor +qt_add_executable(settingseditor locationdialog.cpp locationdialog.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt index 4f8e652ede..d018ec0207 100644 --- a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt +++ b/examples/widgets/tools/styleplugin/stylewindow/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(styleplugin +qt_add_executable(styleplugin main.cpp stylewindow.cpp stylewindow.h ) diff --git a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt index 02a68df7e8..7cefcd5ea5 100644 --- a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt +++ b/examples/widgets/tools/treemodelcompleter/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(treemodelcompleter +qt_add_executable(treemodelcompleter main.cpp mainwindow.cpp mainwindow.h treemodelcompleter.cpp treemodelcompleter.h diff --git a/examples/widgets/tools/undo/CMakeLists.txt b/examples/widgets/tools/undo/CMakeLists.txt index 151825cf33..70e38a8866 100644 --- a/examples/widgets/tools/undo/CMakeLists.txt +++ b/examples/widgets/tools/undo/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(undo +qt_add_executable(undo commands.cpp commands.h document.cpp document.h main.cpp diff --git a/examples/widgets/tools/undoframework/CMakeLists.txt b/examples/widgets/tools/undoframework/CMakeLists.txt index 59fc1a36a1..a4a91ae7c4 100644 --- a/examples/widgets/tools/undoframework/CMakeLists.txt +++ b/examples/widgets/tools/undoframework/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(undoframework +qt_add_executable(undoframework commands.cpp commands.h diagramitem.cpp diagramitem.h diagramscene.cpp diagramscene.h diff --git a/examples/widgets/touch/dials/CMakeLists.txt b/examples/widgets/touch/dials/CMakeLists.txt index 61ef07e133..d779ed657c 100644 --- a/examples/widgets/touch/dials/CMakeLists.txt +++ b/examples/widgets/touch/dials/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(dials +qt_add_executable(dials dials.ui main.cpp ) diff --git a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt b/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt index 05e3a2b3ac..2bd6de1ae0 100644 --- a/examples/widgets/touch/fingerpaint/.prev_CMakeLists.txt +++ b/examples/widgets/touch/fingerpaint/.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(fingerpaint +qt_add_executable(fingerpaint main.cpp mainwindow.cpp mainwindow.h scribblearea.cpp scribblearea.h diff --git a/examples/widgets/touch/fingerpaint/CMakeLists.txt b/examples/widgets/touch/fingerpaint/CMakeLists.txt index 7ed9a791dd..40c38c14a5 100644 --- a/examples/widgets/touch/fingerpaint/CMakeLists.txt +++ b/examples/widgets/touch/fingerpaint/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(fingerpaint +qt_add_executable(fingerpaint main.cpp mainwindow.cpp mainwindow.h scribblearea.cpp scribblearea.h diff --git a/examples/widgets/touch/knobs/CMakeLists.txt b/examples/widgets/touch/knobs/CMakeLists.txt index 20cbc7b1f5..dcf612d5ff 100644 --- a/examples/widgets/touch/knobs/CMakeLists.txt +++ b/examples/widgets/touch/knobs/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(knobs +qt_add_executable(knobs knob.cpp knob.h main.cpp ) diff --git a/examples/widgets/touch/pinchzoom/CMakeLists.txt b/examples/widgets/touch/pinchzoom/CMakeLists.txt index 6a31f781bf..d68559ff9b 100644 --- a/examples/widgets/touch/pinchzoom/CMakeLists.txt +++ b/examples/widgets/touch/pinchzoom/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(pinchzoom +qt_add_executable(pinchzoom graphicsview.cpp graphicsview.h main.cpp mouse.cpp mouse.h diff --git a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt index d11fb80b86..38a6c23390 100644 --- a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part1/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(part1 +qt_add_executable(part1 addressbook.cpp addressbook.h main.cpp ) diff --git a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt index dd0716be13..a29d4fdd02 100644 --- a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part2/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(part2 +qt_add_executable(part2 addressbook.cpp addressbook.h main.cpp ) diff --git a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt index c6c5bad9ba..24fd5ac315 100644 --- a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part3/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(part3 +qt_add_executable(part3 addressbook.cpp addressbook.h main.cpp ) diff --git a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt index 87ce53f9b1..29115c8667 100644 --- a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part4/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(part4 +qt_add_executable(part4 addressbook.cpp addressbook.h main.cpp ) diff --git a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt index 10d2a6b249..1176f88774 100644 --- a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part5/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(part5 +qt_add_executable(part5 addressbook.cpp addressbook.h finddialog.cpp finddialog.h main.cpp diff --git a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt index 1e0c0463ca..214bd2eeb2 100644 --- a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part6/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(part6 +qt_add_executable(part6 addressbook.cpp addressbook.h finddialog.cpp finddialog.h main.cpp diff --git a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt index 199158c454..ba349acba6 100644 --- a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt +++ b/examples/widgets/tutorials/addressbook/part7/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(part7 +qt_add_executable(part7 addressbook.cpp addressbook.h finddialog.cpp finddialog.h main.cpp diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt index 58c9d877ba..86dde1ee5c 100644 --- a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt +++ b/examples/widgets/tutorials/gettingStarted/gsQt/part1/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(part1 +qt_add_executable(part1 main.cpp ) target_link_libraries(part1 PUBLIC diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt index 0e0c859535..fb1cfc547e 100644 --- a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt +++ b/examples/widgets/tutorials/gettingStarted/gsQt/part2/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(part2 +qt_add_executable(part2 main.cpp ) target_link_libraries(part2 PUBLIC diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt index e5f146712f..ef1a9d8cd0 100644 --- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt +++ b/examples/widgets/tutorials/gettingStarted/gsQt/part3/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(part3 +qt_add_executable(part3 main.cpp ) target_link_libraries(part3 PUBLIC diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt index 00f5cab291..b7cd3a7d0e 100644 --- a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt +++ b/examples/widgets/tutorials/gettingStarted/gsQt/part4/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(part4 +qt_add_executable(part4 main.cpp ) target_link_libraries(part4 PUBLIC diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt index 0e39536e95..7f8f3eb0f3 100644 --- a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt +++ b/examples/widgets/tutorials/gettingStarted/gsQt/part5/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(part5 +qt_add_executable(part5 main.cpp ) target_link_libraries(part5 PUBLIC diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt index 4f70b55ebb..857e8a0582 100644 --- a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/1_readonly/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(mv_readonly +qt_add_executable(mv_readonly main.cpp mymodel.cpp mymodel.h ) diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt index 17f6987baa..04871d4043 100644 --- a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/2_formatting/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(mv_formatting +qt_add_executable(mv_formatting main.cpp mymodel.cpp mymodel.h ) diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt index 4d5dbfeea6..cd558a0b88 100644 --- a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/3_changingmodel/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(mv_changingmodel +qt_add_executable(mv_changingmodel main.cpp mymodel.cpp mymodel.h ) diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt index e6a138c286..f317888cf7 100644 --- a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/4_headers/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(mv_headers +qt_add_executable(mv_headers main.cpp mymodel.cpp mymodel.h ) diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt index 2d63117238..2a6b68e1c4 100644 --- a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/5_edit/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(mv_edit +qt_add_executable(mv_edit main.cpp mainwindow.cpp mainwindow.h mymodel.cpp mymodel.h diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt index e6c56365ed..701d766322 100644 --- a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/6_treeview/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(mv_tree +qt_add_executable(mv_tree main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt index 188ef60bcf..15033ccf0a 100644 --- a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/7_selections/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(mv_selections +qt_add_executable(mv_selections main.cpp mainwindow.cpp mainwindow.h ) diff --git a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt index a31c2ed093..120cc3ba7a 100644 --- a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt +++ b/examples/widgets/tutorials/notepad/.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(notepad +qt_add_executable(notepad main.cpp notepad.cpp notepad.h notepad.ui ) diff --git a/examples/widgets/tutorials/notepad/CMakeLists.txt b/examples/widgets/tutorials/notepad/CMakeLists.txt index 77a763b044..9a683791a4 100644 --- a/examples/widgets/tutorials/notepad/CMakeLists.txt +++ b/examples/widgets/tutorials/notepad/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS PrintSupport) # special case: add -add_qt_gui_executable(notepad +qt_add_executable(notepad main.cpp notepad.cpp notepad.h notepad.ui ) diff --git a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt index e09d1ec6ae..dbf9b3f44e 100644 --- a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt +++ b/examples/widgets/tutorials/widgets/childwidget/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(childwidget +qt_add_executable(childwidget main.cpp ) target_link_libraries(childwidget PUBLIC diff --git a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt index 8ed3501cea..4824d9a083 100644 --- a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt +++ b/examples/widgets/tutorials/widgets/nestedlayouts/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(nestedlayouts +qt_add_executable(nestedlayouts main.cpp ) target_link_libraries(nestedlayouts PUBLIC diff --git a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt index 3b7c50d5bf..d1e30f7879 100644 --- a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt +++ b/examples/widgets/tutorials/widgets/toplevel/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(toplevel +qt_add_executable(toplevel main.cpp ) target_link_libraries(toplevel PUBLIC diff --git a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt index e6d9c70b67..918f66b09e 100644 --- a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt +++ b/examples/widgets/tutorials/widgets/windowlayout/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(windowlayout +qt_add_executable(windowlayout main.cpp ) target_link_libraries(windowlayout PUBLIC diff --git a/examples/widgets/widgets/analogclock/CMakeLists.txt b/examples/widgets/widgets/analogclock/CMakeLists.txt index bc0040baf7..82d953e03c 100644 --- a/examples/widgets/widgets/analogclock/CMakeLists.txt +++ b/examples/widgets/widgets/analogclock/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(analogclock +qt_add_executable(analogclock analogclock.cpp analogclock.h main.cpp ) diff --git a/examples/widgets/widgets/calculator/CMakeLists.txt b/examples/widgets/widgets/calculator/CMakeLists.txt index 1475ebe0a0..46471582ac 100644 --- a/examples/widgets/widgets/calculator/CMakeLists.txt +++ b/examples/widgets/widgets/calculator/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(calculator +qt_add_executable(calculator button.cpp button.h calculator.cpp calculator.h main.cpp diff --git a/examples/widgets/widgets/calendarwidget/CMakeLists.txt b/examples/widgets/widgets/calendarwidget/CMakeLists.txt index d0641961b8..978deb93e4 100644 --- a/examples/widgets/widgets/calendarwidget/CMakeLists.txt +++ b/examples/widgets/widgets/calendarwidget/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(calendarwidget +qt_add_executable(calendarwidget main.cpp window.cpp window.h ) diff --git a/examples/widgets/widgets/charactermap/CMakeLists.txt b/examples/widgets/widgets/charactermap/CMakeLists.txt index 5668ae96b0..c4d345773c 100644 --- a/examples/widgets/widgets/charactermap/CMakeLists.txt +++ b/examples/widgets/widgets/charactermap/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(charactermap +qt_add_executable(charactermap characterwidget.cpp characterwidget.h main.cpp mainwindow.cpp mainwindow.h diff --git a/examples/widgets/widgets/codeeditor/CMakeLists.txt b/examples/widgets/widgets/codeeditor/CMakeLists.txt index 632f2661d4..358f57af9b 100644 --- a/examples/widgets/widgets/codeeditor/CMakeLists.txt +++ b/examples/widgets/widgets/codeeditor/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(codeeditor +qt_add_executable(codeeditor codeeditor.cpp codeeditor.h main.cpp ) diff --git a/examples/widgets/widgets/digitalclock/CMakeLists.txt b/examples/widgets/widgets/digitalclock/CMakeLists.txt index cf0257f34a..462b8004b3 100644 --- a/examples/widgets/widgets/digitalclock/CMakeLists.txt +++ b/examples/widgets/widgets/digitalclock/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(digitalclock +qt_add_executable(digitalclock digitalclock.cpp digitalclock.h main.cpp ) diff --git a/examples/widgets/widgets/elidedlabel/CMakeLists.txt b/examples/widgets/widgets/elidedlabel/CMakeLists.txt index 041add330f..132e13784e 100644 --- a/examples/widgets/widgets/elidedlabel/CMakeLists.txt +++ b/examples/widgets/widgets/elidedlabel/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(elidedlabel +qt_add_executable(elidedlabel elidedlabel.cpp elidedlabel.h main.cpp testwidget.cpp testwidget.h diff --git a/examples/widgets/widgets/groupbox/CMakeLists.txt b/examples/widgets/widgets/groupbox/CMakeLists.txt index 8ce733c226..e647311b3b 100644 --- a/examples/widgets/widgets/groupbox/CMakeLists.txt +++ b/examples/widgets/widgets/groupbox/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(groupbox +qt_add_executable(groupbox main.cpp window.cpp window.h ) diff --git a/examples/widgets/widgets/icons/.prev_CMakeLists.txt b/examples/widgets/widgets/icons/.prev_CMakeLists.txt index da1313abc5..98cb1d1c14 100644 --- a/examples/widgets/widgets/icons/.prev_CMakeLists.txt +++ b/examples/widgets/widgets/icons/.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(icons +qt_add_executable(icons iconpreviewarea.cpp iconpreviewarea.h iconsizespinbox.cpp iconsizespinbox.h imagedelegate.cpp imagedelegate.h diff --git a/examples/widgets/widgets/icons/CMakeLists.txt b/examples/widgets/widgets/icons/CMakeLists.txt index 4f4c104fc4..a3342d02fe 100644 --- a/examples/widgets/widgets/icons/CMakeLists.txt +++ b/examples/widgets/widgets/icons/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(icons +qt_add_executable(icons iconpreviewarea.cpp iconpreviewarea.h iconsizespinbox.cpp iconsizespinbox.h imagedelegate.cpp imagedelegate.h diff --git a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt b/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt index f939062f57..e44087fe75 100644 --- a/examples/widgets/widgets/imageviewer/.prev_CMakeLists.txt +++ b/examples/widgets/widgets/imageviewer/.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(imageviewer +qt_add_executable(imageviewer imageviewer.cpp imageviewer.h main.cpp ) diff --git a/examples/widgets/widgets/imageviewer/CMakeLists.txt b/examples/widgets/widgets/imageviewer/CMakeLists.txt index 80f3bd9d2f..c68a541ed3 100644 --- a/examples/widgets/widgets/imageviewer/CMakeLists.txt +++ b/examples/widgets/widgets/imageviewer/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(imageviewer +qt_add_executable(imageviewer imageviewer.cpp imageviewer.h main.cpp ) diff --git a/examples/widgets/widgets/lineedits/CMakeLists.txt b/examples/widgets/widgets/lineedits/CMakeLists.txt index da5a88224c..5a61458607 100644 --- a/examples/widgets/widgets/lineedits/CMakeLists.txt +++ b/examples/widgets/widgets/lineedits/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(lineedits +qt_add_executable(lineedits main.cpp window.cpp window.h ) diff --git a/examples/widgets/widgets/mousebuttons/CMakeLists.txt b/examples/widgets/widgets/mousebuttons/CMakeLists.txt index cbc141c0c2..c623111d51 100644 --- a/examples/widgets/widgets/mousebuttons/CMakeLists.txt +++ b/examples/widgets/widgets/mousebuttons/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(mousebuttons +qt_add_executable(mousebuttons buttontester.cpp buttontester.h main.cpp ) diff --git a/examples/widgets/widgets/movie/CMakeLists.txt b/examples/widgets/widgets/movie/CMakeLists.txt index ebd42761c2..d56b77be8b 100644 --- a/examples/widgets/widgets/movie/CMakeLists.txt +++ b/examples/widgets/widgets/movie/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(movie +qt_add_executable(movie main.cpp movieplayer.cpp movieplayer.h ) diff --git a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt b/examples/widgets/widgets/scribble/.prev_CMakeLists.txt index c40542de91..5b3e6b01cf 100644 --- a/examples/widgets/widgets/scribble/.prev_CMakeLists.txt +++ b/examples/widgets/widgets/scribble/.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(scribble +qt_add_executable(scribble main.cpp mainwindow.cpp mainwindow.h scribblearea.cpp scribblearea.h diff --git a/examples/widgets/widgets/scribble/CMakeLists.txt b/examples/widgets/widgets/scribble/CMakeLists.txt index 5d0b1c913f..a2f774caa8 100644 --- a/examples/widgets/widgets/scribble/CMakeLists.txt +++ b/examples/widgets/widgets/scribble/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(scribble +qt_add_executable(scribble main.cpp mainwindow.cpp mainwindow.h scribblearea.cpp scribblearea.h diff --git a/examples/widgets/widgets/shapedclock/CMakeLists.txt b/examples/widgets/widgets/shapedclock/CMakeLists.txt index 5a02f97234..2d4839e8d2 100644 --- a/examples/widgets/widgets/shapedclock/CMakeLists.txt +++ b/examples/widgets/widgets/shapedclock/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(shapedclock +qt_add_executable(shapedclock main.cpp shapedclock.cpp shapedclock.h ) diff --git a/examples/widgets/widgets/sliders/CMakeLists.txt b/examples/widgets/widgets/sliders/CMakeLists.txt index 1dc8ccb978..6b3014159e 100644 --- a/examples/widgets/widgets/sliders/CMakeLists.txt +++ b/examples/widgets/widgets/sliders/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(sliders +qt_add_executable(sliders main.cpp slidersgroup.cpp slidersgroup.h window.cpp window.h diff --git a/examples/widgets/widgets/spinboxes/CMakeLists.txt b/examples/widgets/widgets/spinboxes/CMakeLists.txt index 57bcf613f9..32a48c5f58 100644 --- a/examples/widgets/widgets/spinboxes/CMakeLists.txt +++ b/examples/widgets/widgets/spinboxes/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(spinboxes +qt_add_executable(spinboxes main.cpp window.cpp window.h ) diff --git a/examples/widgets/widgets/styles/CMakeLists.txt b/examples/widgets/widgets/styles/CMakeLists.txt index bb0b174073..0cf487df82 100644 --- a/examples/widgets/widgets/styles/CMakeLists.txt +++ b/examples/widgets/widgets/styles/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(styles +qt_add_executable(styles main.cpp norwegianwoodstyle.cpp norwegianwoodstyle.h widgetgallery.cpp widgetgallery.h diff --git a/examples/widgets/widgets/stylesheet/CMakeLists.txt b/examples/widgets/widgets/stylesheet/CMakeLists.txt index 6b1becefff..40c915ac14 100644 --- a/examples/widgets/widgets/stylesheet/CMakeLists.txt +++ b/examples/widgets/widgets/stylesheet/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(stylesheet +qt_add_executable(stylesheet main.cpp mainwindow.cpp mainwindow.h mainwindow.ui stylesheeteditor.cpp stylesheeteditor.h stylesheeteditor.ui diff --git a/examples/widgets/widgets/tablet/CMakeLists.txt b/examples/widgets/widgets/tablet/CMakeLists.txt index b1eb827e1d..6b30e0dfab 100644 --- a/examples/widgets/widgets/tablet/CMakeLists.txt +++ b/examples/widgets/widgets/tablet/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(qttablet +qt_add_executable(qttablet main.cpp mainwindow.cpp mainwindow.h tabletapplication.cpp tabletapplication.h diff --git a/examples/widgets/widgets/tetrix/CMakeLists.txt b/examples/widgets/widgets/tetrix/CMakeLists.txt index 49012ac50d..3de565dd23 100644 --- a/examples/widgets/widgets/tetrix/CMakeLists.txt +++ b/examples/widgets/widgets/tetrix/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(tetrix +qt_add_executable(tetrix main.cpp tetrixboard.cpp tetrixboard.h tetrixpiece.cpp tetrixpiece.h diff --git a/examples/widgets/widgets/tooltips/CMakeLists.txt b/examples/widgets/widgets/tooltips/CMakeLists.txt index 0ae500ccdd..393657dc3c 100644 --- a/examples/widgets/widgets/tooltips/CMakeLists.txt +++ b/examples/widgets/widgets/tooltips/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(tooltips +qt_add_executable(tooltips main.cpp shapeitem.cpp shapeitem.h sortingbox.cpp sortingbox.h diff --git a/examples/widgets/widgets/validators/CMakeLists.txt b/examples/widgets/widgets/validators/CMakeLists.txt index 5f4e700111..93c3af5c23 100644 --- a/examples/widgets/widgets/validators/CMakeLists.txt +++ b/examples/widgets/widgets/validators/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(validators +qt_add_executable(validators ledwidget.cpp ledwidget.h localeselector.cpp localeselector.h main.cpp diff --git a/examples/widgets/widgets/wiggly/CMakeLists.txt b/examples/widgets/widgets/wiggly/CMakeLists.txt index 750f3d44ba..a1a1ea5b05 100644 --- a/examples/widgets/widgets/wiggly/CMakeLists.txt +++ b/examples/widgets/widgets/wiggly/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(wiggly +qt_add_executable(wiggly dialog.cpp dialog.h main.cpp wigglywidget.cpp wigglywidget.h diff --git a/examples/widgets/widgets/windowflags/CMakeLists.txt b/examples/widgets/widgets/windowflags/CMakeLists.txt index b118d6901d..7d25bdad45 100644 --- a/examples/widgets/widgets/windowflags/CMakeLists.txt +++ b/examples/widgets/widgets/windowflags/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(windowflags +qt_add_executable(windowflags controllerwindow.cpp controllerwindow.h main.cpp previewwindow.cpp previewwindow.h diff --git a/examples/widgets/windowcontainer/CMakeLists.txt b/examples/widgets/windowcontainer/CMakeLists.txt index 988dc01c3a..d27691b572 100644 --- a/examples/widgets/windowcontainer/CMakeLists.txt +++ b/examples/widgets/windowcontainer/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(windowcontainer +qt_add_executable(windowcontainer ../../opengl/openglwindow/openglwindow.cpp ../../opengl/openglwindow/openglwindow.h windowcontainer.cpp ) diff --git a/examples/xml/dombookmarks/CMakeLists.txt b/examples/xml/dombookmarks/CMakeLists.txt index bce2094a83..e3de1fd26d 100644 --- a/examples/xml/dombookmarks/CMakeLists.txt +++ b/examples/xml/dombookmarks/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Xml) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(dombookmarks +qt_add_executable(dombookmarks main.cpp mainwindow.cpp mainwindow.h xbeltree.cpp xbeltree.h diff --git a/examples/xml/htmlinfo/CMakeLists.txt b/examples/xml/htmlinfo/CMakeLists.txt index e2480ef1a0..d4676de324 100644 --- a/examples/xml/htmlinfo/CMakeLists.txt +++ b/examples/xml/htmlinfo/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/xml/htmlinfo") find_package(Qt6 COMPONENTS Core) -add_executable(htmlinfo +qt_add_executable(htmlinfo main.cpp ) target_link_libraries(htmlinfo PUBLIC diff --git a/examples/xml/rsslisting/CMakeLists.txt b/examples/xml/rsslisting/CMakeLists.txt index 7007b2bdeb..caa4738f6e 100644 --- a/examples/xml/rsslisting/CMakeLists.txt +++ b/examples/xml/rsslisting/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Network) find_package(Qt6 COMPONENTS Xml) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(rsslisting +qt_add_executable(rsslisting main.cpp rsslisting.cpp rsslisting.h ) diff --git a/examples/xml/streambookmarks/CMakeLists.txt b/examples/xml/streambookmarks/CMakeLists.txt index 671b22f7ae..6a6de031e5 100644 --- a/examples/xml/streambookmarks/CMakeLists.txt +++ b/examples/xml/streambookmarks/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Xml) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(streambookmarks +qt_add_executable(streambookmarks main.cpp mainwindow.cpp mainwindow.h xbelreader.cpp xbelreader.h diff --git a/examples/xml/xmlstreamlint/.prev_CMakeLists.txt b/examples/xml/xmlstreamlint/.prev_CMakeLists.txt index 3c2e8cb19a..215cc83f6e 100644 --- a/examples/xml/xmlstreamlint/.prev_CMakeLists.txt +++ b/examples/xml/xmlstreamlint/.prev_CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/xml/xmlstreamlint") find_package(Qt6 COMPONENTS Core) -add_executable(xmlstreamlint +qt_add_executable(xmlstreamlint main.cpp ) target_link_libraries(xmlstreamlint PUBLIC diff --git a/examples/xml/xmlstreamlint/CMakeLists.txt b/examples/xml/xmlstreamlint/CMakeLists.txt index bea0c5c1f4..0642344892 100644 --- a/examples/xml/xmlstreamlint/CMakeLists.txt +++ b/examples/xml/xmlstreamlint/CMakeLists.txt @@ -17,7 +17,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/xml/xmlstreamlint") find_package(Qt6 COMPONENTS Core Xml) # special case -add_executable(xmlstreamlint +qt_add_executable(xmlstreamlint main.cpp ) target_link_libraries(xmlstreamlint PUBLIC -- cgit v1.2.3