From 903252b240834ac2a6d080c0f3a69c53d5ec0c0b Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 16 Oct 2020 16:20:49 +0200 Subject: CMake: Regenerate examples to use qt_add_executable Task-number: QTBUG-87661 Change-Id: Ie5bba408000211b24694aa0143bdf79c4a298f42 Reviewed-by: Daniel Smith --- examples/qml/networkaccessmanagerfactory/CMakeLists.txt | 2 +- examples/qml/referenceexamples/adding/CMakeLists.txt | 2 +- examples/qml/referenceexamples/attached/CMakeLists.txt | 2 +- examples/qml/referenceexamples/binding/CMakeLists.txt | 2 +- examples/qml/referenceexamples/coercion/CMakeLists.txt | 2 +- examples/qml/referenceexamples/default/CMakeLists.txt | 2 +- examples/qml/referenceexamples/extended/CMakeLists.txt | 2 +- examples/qml/referenceexamples/grouped/CMakeLists.txt | 2 +- examples/qml/referenceexamples/methods/CMakeLists.txt | 2 +- examples/qml/referenceexamples/properties/CMakeLists.txt | 2 +- examples/qml/referenceexamples/signal/CMakeLists.txt | 2 +- examples/qml/referenceexamples/valuesource/CMakeLists.txt | 2 +- examples/qml/shell/CMakeLists.txt | 2 +- examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt | 2 +- examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt | 2 +- examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt | 2 +- .../tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt | 2 +- .../qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt | 2 +- .../qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt | 2 +- examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt | 2 +- examples/qml/xmlhttprequest/CMakeLists.txt | 2 +- examples/qmltest/qmltest/.prev_CMakeLists.txt | 2 +- examples/qmltest/qmltest/CMakeLists.txt | 2 +- examples/quick/animation/CMakeLists.txt | 2 +- examples/quick/canvas/CMakeLists.txt | 2 +- examples/quick/customitems/dialcontrol/CMakeLists.txt | 2 +- examples/quick/customitems/maskedmousearea/CMakeLists.txt | 2 +- examples/quick/delegatechooser/CMakeLists.txt | 2 +- examples/quick/draganddrop/CMakeLists.txt | 2 +- examples/quick/embeddedinwidgets/CMakeLists.txt | 2 +- examples/quick/externaldraganddrop/CMakeLists.txt | 2 +- examples/quick/imageelements/CMakeLists.txt | 2 +- examples/quick/keyinteraction/CMakeLists.txt | 2 +- examples/quick/layouts/CMakeLists.txt | 2 +- examples/quick/localstorage/localstorage/CMakeLists.txt | 2 +- examples/quick/models/abstractitemmodel/CMakeLists.txt | 2 +- examples/quick/models/objectlistmodel/CMakeLists.txt | 2 +- examples/quick/models/stringlistmodel/CMakeLists.txt | 2 +- examples/quick/mousearea/CMakeLists.txt | 2 +- examples/quick/particles/affectors/CMakeLists.txt | 2 +- examples/quick/particles/emitters/CMakeLists.txt | 2 +- examples/quick/particles/imageparticle/CMakeLists.txt | 2 +- examples/quick/particles/itemparticle/CMakeLists.txt | 2 +- examples/quick/particles/system/CMakeLists.txt | 2 +- examples/quick/positioners/CMakeLists.txt | 2 +- examples/quick/quick-accessibility/CMakeLists.txt | 2 +- examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt | 2 +- examples/quick/quickwidgets/quickwidget/CMakeLists.txt | 2 +- examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt | 2 +- examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt | 2 +- examples/quick/righttoleft/CMakeLists.txt | 2 +- examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt | 2 +- examples/quick/scenegraph/customgeometry/CMakeLists.txt | 2 +- examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt | 2 +- examples/quick/scenegraph/custommaterial/CMakeLists.txt | 2 +- examples/quick/scenegraph/d3d11underqml/CMakeLists.txt | 2 +- examples/quick/scenegraph/fboitem/CMakeLists.txt | 2 +- examples/quick/scenegraph/graph/CMakeLists.txt | 2 +- examples/quick/scenegraph/metaltextureimport/CMakeLists.txt | 2 +- examples/quick/scenegraph/metalunderqml/CMakeLists.txt | 2 +- examples/quick/scenegraph/openglunderqml/CMakeLists.txt | 2 +- examples/quick/scenegraph/threadedanimation/CMakeLists.txt | 2 +- examples/quick/scenegraph/twotextureproviders/CMakeLists.txt | 2 +- examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt | 2 +- examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt | 2 +- examples/quick/shadereffects/CMakeLists.txt | 2 +- examples/quick/shapes/CMakeLists.txt | 2 +- examples/quick/tableview/gameoflife/CMakeLists.txt | 2 +- examples/quick/tableview/pixelator/CMakeLists.txt | 2 +- examples/quick/text/CMakeLists.txt | 2 +- examples/quick/threading/CMakeLists.txt | 2 +- examples/quick/touchinteraction/CMakeLists.txt | 2 +- examples/quick/views/CMakeLists.txt | 2 +- examples/quick/window/CMakeLists.txt | 2 +- 74 files changed, 74 insertions(+), 74 deletions(-) diff --git a/examples/qml/networkaccessmanagerfactory/CMakeLists.txt b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt index d0d8edaa01..561866bbec 100644 --- a/examples/qml/networkaccessmanagerfactory/CMakeLists.txt +++ b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Network) -add_qt_gui_executable(networkaccessmanagerfactory +qt_add_executable(networkaccessmanagerfactory main.cpp ) target_link_libraries(networkaccessmanagerfactory PUBLIC diff --git a/examples/qml/referenceexamples/adding/CMakeLists.txt b/examples/qml/referenceexamples/adding/CMakeLists.txt index 2e408bc21e..47c7e1025d 100644 --- a/examples/qml/referenceexamples/adding/CMakeLists.txt +++ b/examples/qml/referenceexamples/adding/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/adding") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(adding +qt_add_executable(adding main.cpp person.cpp person.h ) diff --git a/examples/qml/referenceexamples/attached/CMakeLists.txt b/examples/qml/referenceexamples/attached/CMakeLists.txt index f0ab82e33b..2cf6c881e8 100644 --- a/examples/qml/referenceexamples/attached/CMakeLists.txt +++ b/examples/qml/referenceexamples/attached/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(attached +qt_add_executable(attached birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/binding/CMakeLists.txt b/examples/qml/referenceexamples/binding/CMakeLists.txt index 130baf47ec..87b95b4d37 100644 --- a/examples/qml/referenceexamples/binding/CMakeLists.txt +++ b/examples/qml/referenceexamples/binding/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(binding +qt_add_executable(binding birthdayparty.cpp birthdayparty.h happybirthdaysong.cpp happybirthdaysong.h main.cpp diff --git a/examples/qml/referenceexamples/coercion/CMakeLists.txt b/examples/qml/referenceexamples/coercion/CMakeLists.txt index 9afaa87082..abdfe70b5d 100644 --- a/examples/qml/referenceexamples/coercion/CMakeLists.txt +++ b/examples/qml/referenceexamples/coercion/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/coercion") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(coercion +qt_add_executable(coercion birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/default/CMakeLists.txt b/examples/qml/referenceexamples/default/CMakeLists.txt index cfb1942345..bdd6f76c7d 100644 --- a/examples/qml/referenceexamples/default/CMakeLists.txt +++ b/examples/qml/referenceexamples/default/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/default") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(default +qt_add_executable(default birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/extended/CMakeLists.txt b/examples/qml/referenceexamples/extended/CMakeLists.txt index fcc7619608..f2b99ec2c0 100644 --- a/examples/qml/referenceexamples/extended/CMakeLists.txt +++ b/examples/qml/referenceexamples/extended/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Widgets) -add_qt_gui_executable(extended +qt_add_executable(extended lineedit.cpp lineedit.h main.cpp ) diff --git a/examples/qml/referenceexamples/grouped/CMakeLists.txt b/examples/qml/referenceexamples/grouped/CMakeLists.txt index f14028d422..e8eec7acc8 100644 --- a/examples/qml/referenceexamples/grouped/CMakeLists.txt +++ b/examples/qml/referenceexamples/grouped/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(grouped +qt_add_executable(grouped birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/methods/CMakeLists.txt b/examples/qml/referenceexamples/methods/CMakeLists.txt index 476fb9fd4b..e1eca9df13 100644 --- a/examples/qml/referenceexamples/methods/CMakeLists.txt +++ b/examples/qml/referenceexamples/methods/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/methods") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(methods +qt_add_executable(methods birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/properties/CMakeLists.txt b/examples/qml/referenceexamples/properties/CMakeLists.txt index 8125f11659..e20d68fd48 100644 --- a/examples/qml/referenceexamples/properties/CMakeLists.txt +++ b/examples/qml/referenceexamples/properties/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/properties" find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(properties +qt_add_executable(properties birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/signal/CMakeLists.txt b/examples/qml/referenceexamples/signal/CMakeLists.txt index 37a178a631..335741ebed 100644 --- a/examples/qml/referenceexamples/signal/CMakeLists.txt +++ b/examples/qml/referenceexamples/signal/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(signal +qt_add_executable(signal birthdayparty.cpp birthdayparty.h main.cpp person.cpp person.h diff --git a/examples/qml/referenceexamples/valuesource/CMakeLists.txt b/examples/qml/referenceexamples/valuesource/CMakeLists.txt index ed7209730c..e2cf1f58cc 100644 --- a/examples/qml/referenceexamples/valuesource/CMakeLists.txt +++ b/examples/qml/referenceexamples/valuesource/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(valuesource +qt_add_executable(valuesource birthdayparty.cpp birthdayparty.h happybirthdaysong.cpp happybirthdaysong.h main.cpp diff --git a/examples/qml/shell/CMakeLists.txt b/examples/qml/shell/CMakeLists.txt index 4b48ce26cc..5f646ac46e 100644 --- a/examples/qml/shell/CMakeLists.txt +++ b/examples/qml/shell/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/shell") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(shell +qt_add_executable(shell main.cpp ) target_link_libraries(shell PUBLIC diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt index c2b21948bd..80b01a31d0 100644 --- a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter1-basics +qt_add_executable(chapter1-basics main.cpp piechart.cpp piechart.h ) diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt index b47f42329e..e3ac7eeff5 100644 --- a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter2-methods +qt_add_executable(chapter2-methods main.cpp piechart.cpp piechart.h ) diff --git a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt index de68f8f3b8..6c9f0b7e78 100644 --- a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter3-bindings +qt_add_executable(chapter3-bindings main.cpp piechart.cpp piechart.h ) diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt index 45055fc2cb..cbf4067a3e 100644 --- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter4-customPropertyTypes +qt_add_executable(chapter4-customPropertyTypes main.cpp piechart.cpp piechart.h pieslice.cpp pieslice.h diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt index 48620d9c5c..e3a7593f2f 100644 --- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter5-listproperties +qt_add_executable(chapter5-listproperties main.cpp piechart.cpp piechart.h pieslice.cpp pieslice.h diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt index 1e2b75e919..3a7face697 100644 --- a/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/tutorials/extending-qml/chapt find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter6-plugins +qt_add_executable(chapter6-plugins main.cpp ) target_link_libraries(chapter6-plugins PUBLIC diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt index fea7cce62d..941e68344d 100644 --- a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/tutorials/extending-qml/chapt find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(chapter6-plugins +qt_add_executable(chapter6-plugins main.cpp ) target_link_libraries(chapter6-plugins PUBLIC diff --git a/examples/qml/xmlhttprequest/CMakeLists.txt b/examples/qml/xmlhttprequest/CMakeLists.txt index fd9f58e52a..7b6529d761 100644 --- a/examples/qml/xmlhttprequest/CMakeLists.txt +++ b/examples/qml/xmlhttprequest/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(xmlhttprequest +qt_add_executable(xmlhttprequest main.cpp ) target_link_libraries(xmlhttprequest PUBLIC diff --git a/examples/qmltest/qmltest/.prev_CMakeLists.txt b/examples/qmltest/qmltest/.prev_CMakeLists.txt index 08f9e8b1c9..364e661910 100644 --- a/examples/qmltest/qmltest/.prev_CMakeLists.txt +++ b/examples/qmltest/qmltest/.prev_CMakeLists.txt @@ -18,7 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) -add_qt_gui_executable(tst_qmltestexample +qt_add_executable(tst_qmltestexample tst_qmltest.cpp ) target_link_libraries(tst_qmltestexample PUBLIC diff --git a/examples/qmltest/qmltest/CMakeLists.txt b/examples/qmltest/qmltest/CMakeLists.txt index f8c290f278..113b31bfa5 100644 --- a/examples/qmltest/qmltest/CMakeLists.txt +++ b/examples/qmltest/qmltest/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS QuickTest) #special case end -add_qt_gui_executable(tst_qmltestexample +qt_add_executable(tst_qmltestexample tst_qmltest.cpp ) target_link_libraries(tst_qmltestexample PUBLIC diff --git a/examples/quick/animation/CMakeLists.txt b/examples/quick/animation/CMakeLists.txt index 6480735b9f..54913733a8 100644 --- a/examples/quick/animation/CMakeLists.txt +++ b/examples/quick/animation/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(animation +qt_add_executable(animation main.cpp ) target_link_libraries(animation PUBLIC diff --git a/examples/quick/canvas/CMakeLists.txt b/examples/quick/canvas/CMakeLists.txt index a23ccfd3b1..cc4911bd3b 100644 --- a/examples/quick/canvas/CMakeLists.txt +++ b/examples/quick/canvas/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(canvas +qt_add_executable(canvas main.cpp ) target_link_libraries(canvas PUBLIC diff --git a/examples/quick/customitems/dialcontrol/CMakeLists.txt b/examples/quick/customitems/dialcontrol/CMakeLists.txt index 9c507c416f..755110da9c 100644 --- a/examples/quick/customitems/dialcontrol/CMakeLists.txt +++ b/examples/quick/customitems/dialcontrol/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(dialcontrol +qt_add_executable(dialcontrol main.cpp ) target_link_libraries(dialcontrol PUBLIC diff --git a/examples/quick/customitems/maskedmousearea/CMakeLists.txt b/examples/quick/customitems/maskedmousearea/CMakeLists.txt index 5ac8f83eed..fb3ece011a 100644 --- a/examples/quick/customitems/maskedmousearea/CMakeLists.txt +++ b/examples/quick/customitems/maskedmousearea/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(maskedmousearea +qt_add_executable(maskedmousearea main.cpp maskedmousearea.cpp maskedmousearea.h ) diff --git a/examples/quick/delegatechooser/CMakeLists.txt b/examples/quick/delegatechooser/CMakeLists.txt index d2850a53bd..1e51098c98 100644 --- a/examples/quick/delegatechooser/CMakeLists.txt +++ b/examples/quick/delegatechooser/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(delegatechooser +qt_add_executable(delegatechooser main.cpp ) target_link_libraries(delegatechooser PUBLIC diff --git a/examples/quick/draganddrop/CMakeLists.txt b/examples/quick/draganddrop/CMakeLists.txt index f02277d0c6..ff910754bb 100644 --- a/examples/quick/draganddrop/CMakeLists.txt +++ b/examples/quick/draganddrop/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(draganddrop +qt_add_executable(draganddrop main.cpp ) target_link_libraries(draganddrop PUBLIC diff --git a/examples/quick/embeddedinwidgets/CMakeLists.txt b/examples/quick/embeddedinwidgets/CMakeLists.txt index ab41cd0d76..c7e0a49293 100644 --- a/examples/quick/embeddedinwidgets/CMakeLists.txt +++ b/examples/quick/embeddedinwidgets/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(embeddedinwidgets +qt_add_executable(embeddedinwidgets main.cpp ) target_link_libraries(embeddedinwidgets PUBLIC diff --git a/examples/quick/externaldraganddrop/CMakeLists.txt b/examples/quick/externaldraganddrop/CMakeLists.txt index 387dab673f..aadbaf1f28 100644 --- a/examples/quick/externaldraganddrop/CMakeLists.txt +++ b/examples/quick/externaldraganddrop/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(externaldraganddrop +qt_add_executable(externaldraganddrop main.cpp ) target_link_libraries(externaldraganddrop PUBLIC diff --git a/examples/quick/imageelements/CMakeLists.txt b/examples/quick/imageelements/CMakeLists.txt index 9b3e7b09a3..eaa683ecf1 100644 --- a/examples/quick/imageelements/CMakeLists.txt +++ b/examples/quick/imageelements/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(imageelements +qt_add_executable(imageelements main.cpp ) target_link_libraries(imageelements PUBLIC diff --git a/examples/quick/keyinteraction/CMakeLists.txt b/examples/quick/keyinteraction/CMakeLists.txt index 06c9e74db4..b726ffc4b2 100644 --- a/examples/quick/keyinteraction/CMakeLists.txt +++ b/examples/quick/keyinteraction/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(keyinteraction +qt_add_executable(keyinteraction main.cpp ) target_link_libraries(keyinteraction PUBLIC diff --git a/examples/quick/layouts/CMakeLists.txt b/examples/quick/layouts/CMakeLists.txt index 07dbf00428..a04ac4cbf7 100644 --- a/examples/quick/layouts/CMakeLists.txt +++ b/examples/quick/layouts/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(layouts +qt_add_executable(layouts main.cpp ) target_link_libraries(layouts PUBLIC diff --git a/examples/quick/localstorage/localstorage/CMakeLists.txt b/examples/quick/localstorage/localstorage/CMakeLists.txt index 0fa7771c49..5bf8b1dac1 100644 --- a/examples/quick/localstorage/localstorage/CMakeLists.txt +++ b/examples/quick/localstorage/localstorage/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(localstorage +qt_add_executable(localstorage main.cpp ) target_link_libraries(localstorage PUBLIC diff --git a/examples/quick/models/abstractitemmodel/CMakeLists.txt b/examples/quick/models/abstractitemmodel/CMakeLists.txt index 7e7fabb916..1e67db9295 100644 --- a/examples/quick/models/abstractitemmodel/CMakeLists.txt +++ b/examples/quick/models/abstractitemmodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(abstractitemmodel +qt_add_executable(abstractitemmodel main.cpp model.cpp model.h ) diff --git a/examples/quick/models/objectlistmodel/CMakeLists.txt b/examples/quick/models/objectlistmodel/CMakeLists.txt index 6c3f30ca75..acc38f8545 100644 --- a/examples/quick/models/objectlistmodel/CMakeLists.txt +++ b/examples/quick/models/objectlistmodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(objectlistmodel +qt_add_executable(objectlistmodel dataobject.cpp dataobject.h main.cpp ) diff --git a/examples/quick/models/stringlistmodel/CMakeLists.txt b/examples/quick/models/stringlistmodel/CMakeLists.txt index 898d3b5c45..92842da4a5 100644 --- a/examples/quick/models/stringlistmodel/CMakeLists.txt +++ b/examples/quick/models/stringlistmodel/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(stringlistmodel +qt_add_executable(stringlistmodel main.cpp ) target_link_libraries(stringlistmodel PUBLIC diff --git a/examples/quick/mousearea/CMakeLists.txt b/examples/quick/mousearea/CMakeLists.txt index 30173236af..bd62c0e60e 100644 --- a/examples/quick/mousearea/CMakeLists.txt +++ b/examples/quick/mousearea/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(mousearea +qt_add_executable(mousearea main.cpp ) target_link_libraries(mousearea PUBLIC diff --git a/examples/quick/particles/affectors/CMakeLists.txt b/examples/quick/particles/affectors/CMakeLists.txt index 9bb67cf5e0..b4d77b9cc4 100644 --- a/examples/quick/particles/affectors/CMakeLists.txt +++ b/examples/quick/particles/affectors/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(affectors +qt_add_executable(affectors main.cpp ) target_link_libraries(affectors PUBLIC diff --git a/examples/quick/particles/emitters/CMakeLists.txt b/examples/quick/particles/emitters/CMakeLists.txt index e3f8349db7..6fb90d54f2 100644 --- a/examples/quick/particles/emitters/CMakeLists.txt +++ b/examples/quick/particles/emitters/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(emitters +qt_add_executable(emitters main.cpp ) target_link_libraries(emitters PUBLIC diff --git a/examples/quick/particles/imageparticle/CMakeLists.txt b/examples/quick/particles/imageparticle/CMakeLists.txt index 54297b4db3..0a9d9b2af0 100644 --- a/examples/quick/particles/imageparticle/CMakeLists.txt +++ b/examples/quick/particles/imageparticle/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(imageparticle +qt_add_executable(imageparticle main.cpp ) target_link_libraries(imageparticle PUBLIC diff --git a/examples/quick/particles/itemparticle/CMakeLists.txt b/examples/quick/particles/itemparticle/CMakeLists.txt index c7c0119aef..0f0d5b181e 100644 --- a/examples/quick/particles/itemparticle/CMakeLists.txt +++ b/examples/quick/particles/itemparticle/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(itemparticle +qt_add_executable(itemparticle main.cpp ) target_link_libraries(itemparticle PUBLIC diff --git a/examples/quick/particles/system/CMakeLists.txt b/examples/quick/particles/system/CMakeLists.txt index 79973a2f04..5071830e21 100644 --- a/examples/quick/particles/system/CMakeLists.txt +++ b/examples/quick/particles/system/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(system +qt_add_executable(system main.cpp ) target_link_libraries(system PUBLIC diff --git a/examples/quick/positioners/CMakeLists.txt b/examples/quick/positioners/CMakeLists.txt index 3032902485..2b0bf2a2c3 100644 --- a/examples/quick/positioners/CMakeLists.txt +++ b/examples/quick/positioners/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(positioners +qt_add_executable(positioners main.cpp ) target_link_libraries(positioners PUBLIC diff --git a/examples/quick/quick-accessibility/CMakeLists.txt b/examples/quick/quick-accessibility/CMakeLists.txt index ea62095ce0..379c72a6e7 100644 --- a/examples/quick/quick-accessibility/CMakeLists.txt +++ b/examples/quick/quick-accessibility/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(quick-accessibility +qt_add_executable(quick-accessibility main.cpp ) target_link_libraries(quick-accessibility PUBLIC diff --git a/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt b/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt index 8c8287eed4..1fdf909ab8 100644 --- a/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt +++ b/examples/quick/quickwidgets/qquickviewcomparison/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS QuickWidgets) -add_qt_gui_executable(qquickviewcomparison +qt_add_executable(qquickviewcomparison fbitem.cpp fbitem.h logo.cpp logo.h main.cpp diff --git a/examples/quick/quickwidgets/quickwidget/CMakeLists.txt b/examples/quick/quickwidgets/quickwidget/CMakeLists.txt index f2b047a9a3..484709fdae 100644 --- a/examples/quick/quickwidgets/quickwidget/CMakeLists.txt +++ b/examples/quick/quickwidgets/quickwidget/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Widgets) find_package(Qt6 COMPONENTS QuickWidgets) -add_qt_gui_executable(quickwidget +qt_add_executable(quickwidget fbitem.cpp fbitem.h main.cpp ) diff --git a/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt b/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt index 099a90f28c..74d4d55ac7 100644 --- a/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt +++ b/examples/quick/rendercontrol/rendercontrol_d3d11/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(rendercontrol_d3d11 +qt_add_executable(rendercontrol_d3d11 engine.cpp engine.h main.cpp window.cpp window.h diff --git a/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt b/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt index b821579188..f5d1c9026e 100644 --- a/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt +++ b/examples/quick/rendercontrol/rendercontrol_opengl/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(rendercontrol_opengl +qt_add_executable(rendercontrol_opengl cuberenderer.cpp cuberenderer.h main.cpp window_singlethreaded.cpp window_singlethreaded.h diff --git a/examples/quick/righttoleft/CMakeLists.txt b/examples/quick/righttoleft/CMakeLists.txt index ac87fd0c31..9eb7665dc0 100644 --- a/examples/quick/righttoleft/CMakeLists.txt +++ b/examples/quick/righttoleft/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(righttoleft +qt_add_executable(righttoleft main.cpp ) target_link_libraries(righttoleft PUBLIC diff --git a/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt b/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt index 6e4395503c..b4f77372de 100644 --- a/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt +++ b/examples/quick/scenegraph/customgeometry/.prev_CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(customgeometry +qt_add_executable(customgeometry beziercurve.cpp beziercurve.h main.cpp ) diff --git a/examples/quick/scenegraph/customgeometry/CMakeLists.txt b/examples/quick/scenegraph/customgeometry/CMakeLists.txt index 0f62794a9f..c9a49a4752 100644 --- a/examples/quick/scenegraph/customgeometry/CMakeLists.txt +++ b/examples/quick/scenegraph/customgeometry/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(customgeometry_declarative # special case +qt_add_executable(customgeometry_declarative # special case beziercurve.cpp beziercurve.h main.cpp ) diff --git a/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt b/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt index 4974a5e511..d409fd1086 100644 --- a/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt +++ b/examples/quick/scenegraph/custommaterial/.prev_CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(custommaterial +qt_add_executable(custommaterial customitem.cpp customitem.h main.cpp ) diff --git a/examples/quick/scenegraph/custommaterial/CMakeLists.txt b/examples/quick/scenegraph/custommaterial/CMakeLists.txt index 7f41fdaa53..e57a82b395 100644 --- a/examples/quick/scenegraph/custommaterial/CMakeLists.txt +++ b/examples/quick/scenegraph/custommaterial/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(custommaterial_declarative # special case +qt_add_executable(custommaterial_declarative # special case customitem.cpp customitem.h main.cpp ) diff --git a/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt index 24a82e20a1..8eca755be8 100644 --- a/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt +++ b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(d3d11underqml +qt_add_executable(d3d11underqml d3d11squircle.cpp d3d11squircle.h main.cpp ) diff --git a/examples/quick/scenegraph/fboitem/CMakeLists.txt b/examples/quick/scenegraph/fboitem/CMakeLists.txt index 2f0fd4b631..46f729a0cd 100644 --- a/examples/quick/scenegraph/fboitem/CMakeLists.txt +++ b/examples/quick/scenegraph/fboitem/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(fboitem +qt_add_executable(fboitem ../shared/logorenderer.cpp ../shared/logorenderer.h fboinsgrenderer.cpp fboinsgrenderer.h main.cpp diff --git a/examples/quick/scenegraph/graph/CMakeLists.txt b/examples/quick/scenegraph/graph/CMakeLists.txt index 1d6bb47b46..312cc68713 100644 --- a/examples/quick/scenegraph/graph/CMakeLists.txt +++ b/examples/quick/scenegraph/graph/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(graph +qt_add_executable(graph graph.cpp graph.h gridnode.cpp gridnode.h linenode.cpp linenode.h diff --git a/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt index aff92b4ea6..9427df536c 100644 --- a/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt +++ b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(metaltextureimport +qt_add_executable(metaltextureimport main.cpp metaltextureimport.h metaltextureimport.mm ) diff --git a/examples/quick/scenegraph/metalunderqml/CMakeLists.txt b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt index 73f8703e8d..c4b1869d1c 100644 --- a/examples/quick/scenegraph/metalunderqml/CMakeLists.txt +++ b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(metalunderqml +qt_add_executable(metalunderqml main.cpp metalsquircle.h metalsquircle.mm ) diff --git a/examples/quick/scenegraph/openglunderqml/CMakeLists.txt b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt index 2145c6275b..e9c668083a 100644 --- a/examples/quick/scenegraph/openglunderqml/CMakeLists.txt +++ b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(openglunderqml +qt_add_executable(openglunderqml main.cpp squircle.cpp squircle.h ) diff --git a/examples/quick/scenegraph/threadedanimation/CMakeLists.txt b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt index 8fdd7ec4cc..4fbe2d7518 100644 --- a/examples/quick/scenegraph/threadedanimation/CMakeLists.txt +++ b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(threadedanimation +qt_add_executable(threadedanimation main.cpp spinner.cpp spinner.h ) diff --git a/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt index b8f9d3d79b..b8ec2724e8 100644 --- a/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt +++ b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(twotextureproviders +qt_add_executable(twotextureproviders main.cpp xorblender.cpp xorblender.h ) diff --git a/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt b/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt index 896f8d9ebc..a0ee87fdd5 100644 --- a/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt +++ b/examples/quick/scenegraph/vulkantextureimport/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(vulkantextureimport +qt_add_executable(vulkantextureimport main.cpp vulkantextureimport.cpp vulkantextureimport.h ) diff --git a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt index 7ba17d6644..27d1e2baac 100644 --- a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt +++ b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) -add_qt_gui_executable(vulkanunderqml +qt_add_executable(vulkanunderqml main.cpp vulkansquircle.cpp vulkansquircle.h ) diff --git a/examples/quick/shadereffects/CMakeLists.txt b/examples/quick/shadereffects/CMakeLists.txt index aebc334a9d..941ad279c9 100644 --- a/examples/quick/shadereffects/CMakeLists.txt +++ b/examples/quick/shadereffects/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(shadereffects +qt_add_executable(shadereffects main.cpp ) target_link_libraries(shadereffects PUBLIC diff --git a/examples/quick/shapes/CMakeLists.txt b/examples/quick/shapes/CMakeLists.txt index 4a41438227..fc449c8e5f 100644 --- a/examples/quick/shapes/CMakeLists.txt +++ b/examples/quick/shapes/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(shapes +qt_add_executable(shapes main.cpp ) target_link_libraries(shapes PUBLIC diff --git a/examples/quick/tableview/gameoflife/CMakeLists.txt b/examples/quick/tableview/gameoflife/CMakeLists.txt index f3cd2bffb5..3ee3a7584d 100644 --- a/examples/quick/tableview/gameoflife/CMakeLists.txt +++ b/examples/quick/tableview/gameoflife/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(gameoflife +qt_add_executable(gameoflife gameoflifemodel.cpp gameoflifemodel.h main.cpp ) diff --git a/examples/quick/tableview/pixelator/CMakeLists.txt b/examples/quick/tableview/pixelator/CMakeLists.txt index e5b31d3b30..ccefb588e9 100644 --- a/examples/quick/tableview/pixelator/CMakeLists.txt +++ b/examples/quick/tableview/pixelator/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(qml_pixelator +qt_add_executable(qml_pixelator imagemodel.cpp imagemodel.h main.cpp ) diff --git a/examples/quick/text/CMakeLists.txt b/examples/quick/text/CMakeLists.txt index 6fce570e7c..00ebc61d62 100644 --- a/examples/quick/text/CMakeLists.txt +++ b/examples/quick/text/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(text +qt_add_executable(text main.cpp ) target_link_libraries(text PUBLIC diff --git a/examples/quick/threading/CMakeLists.txt b/examples/quick/threading/CMakeLists.txt index cbced5e12e..edf3be9698 100644 --- a/examples/quick/threading/CMakeLists.txt +++ b/examples/quick/threading/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(threading +qt_add_executable(threading main.cpp ) target_link_libraries(threading PUBLIC diff --git a/examples/quick/touchinteraction/CMakeLists.txt b/examples/quick/touchinteraction/CMakeLists.txt index d7ad57b2e1..090895bc26 100644 --- a/examples/quick/touchinteraction/CMakeLists.txt +++ b/examples/quick/touchinteraction/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(touchinteraction +qt_add_executable(touchinteraction main.cpp ) target_link_libraries(touchinteraction PUBLIC diff --git a/examples/quick/views/CMakeLists.txt b/examples/quick/views/CMakeLists.txt index da38b18ec0..f2b2a1eb09 100644 --- a/examples/quick/views/CMakeLists.txt +++ b/examples/quick/views/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(views +qt_add_executable(views main.cpp ) target_link_libraries(views PUBLIC diff --git a/examples/quick/window/CMakeLists.txt b/examples/quick/window/CMakeLists.txt index 6e5d67b4ac..8c4d790170 100644 --- a/examples/quick/window/CMakeLists.txt +++ b/examples/quick/window/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Qml) -add_qt_gui_executable(window +qt_add_executable(window main.cpp ) target_link_libraries(window PUBLIC -- cgit v1.2.3