diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-16 16:25:38 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-20 09:13:28 +0200 |
commit | 97f3bd40bc35caaf3dd7eddcab23ce821fb5460a (patch) | |
tree | 3fb7bbaa19740cbcc08817d0ca189f6bfd0e80ed | |
parent | e7fd60086723aba5ea73c51dffa274889d1a39ea (diff) |
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661
Change-Id: I640a3c4281040309a6feb3585c4134190627d17d
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
18 files changed, 18 insertions, 18 deletions
diff --git a/examples/wayland/custom-extension/compositor/CMakeLists.txt b/examples/wayland/custom-extension/compositor/CMakeLists.txt index d38efb1bf..99f880357 100644 --- a/examples/wayland/custom-extension/compositor/CMakeLists.txt +++ b/examples/wayland/custom-extension/compositor/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS WaylandCompositor) -add_qt_gui_executable(custom-extension-compositor +qt_add_executable(custom-extension-compositor customextension.cpp customextension.h main.cpp ) diff --git a/examples/wayland/custom-extension/cpp-client/CMakeLists.txt b/examples/wayland/custom-extension/cpp-client/CMakeLists.txt index 20241bc5a..e2afa3cf4 100644 --- a/examples/wayland/custom-extension/cpp-client/CMakeLists.txt +++ b/examples/wayland/custom-extension/cpp-client/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS WaylandClient) -add_qt_gui_executable(custom-extension-cpp-client +qt_add_executable(custom-extension-cpp-client ../client-common/customextension.cpp ../client-common/customextension.h main.cpp ) diff --git a/examples/wayland/custom-extension/qml-client/CMakeLists.txt b/examples/wayland/custom-extension/qml-client/CMakeLists.txt index 236c56642..010841e39 100644 --- a/examples/wayland/custom-extension/qml-client/CMakeLists.txt +++ b/examples/wayland/custom-extension/qml-client/CMakeLists.txt @@ -21,7 +21,7 @@ find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS WaylandClient) -add_qt_gui_executable(custom-extension-qml-client +qt_add_executable(custom-extension-qml-client ../client-common/customextension.cpp ../client-common/customextension.h main.cpp ) diff --git a/examples/wayland/hwlayer-compositor/CMakeLists.txt b/examples/wayland/hwlayer-compositor/CMakeLists.txt index 747a491d3..4dfc7969e 100644 --- a/examples/wayland/hwlayer-compositor/CMakeLists.txt +++ b/examples/wayland/hwlayer-compositor/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(hwlayer-compositor +qt_add_executable(hwlayer-compositor main.cpp ) target_link_libraries(hwlayer-compositor PUBLIC diff --git a/examples/wayland/ivi-compositor/CMakeLists.txt b/examples/wayland/ivi-compositor/CMakeLists.txt index 31e8255ed..b1e5226da 100644 --- a/examples/wayland/ivi-compositor/CMakeLists.txt +++ b/examples/wayland/ivi-compositor/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(ivi-compositor +qt_add_executable(ivi-compositor main.cpp ) target_link_libraries(ivi-compositor PUBLIC diff --git a/examples/wayland/minimal-cpp/.prev_CMakeLists.txt b/examples/wayland/minimal-cpp/.prev_CMakeLists.txt index 37f47edcf..897c8a34f 100644 --- a/examples/wayland/minimal-cpp/.prev_CMakeLists.txt +++ b/examples/wayland/minimal-cpp/.prev_CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS WaylandCompositor) -add_qt_gui_executable(minimal-cpp +qt_add_executable(minimal-cpp compositor.cpp compositor.h main.cpp window.cpp window.h diff --git a/examples/wayland/minimal-cpp/CMakeLists.txt b/examples/wayland/minimal-cpp/CMakeLists.txt index ef80384fc..535ec131c 100644 --- a/examples/wayland/minimal-cpp/CMakeLists.txt +++ b/examples/wayland/minimal-cpp/CMakeLists.txt @@ -19,7 +19,7 @@ find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS WaylandCompositor) -add_qt_gui_executable(minimal-cpp +qt_add_executable(minimal-cpp compositor.cpp compositor.h main.cpp window.cpp window.h diff --git a/examples/wayland/minimal-qml/CMakeLists.txt b/examples/wayland/minimal-qml/CMakeLists.txt index 34e40a9ee..e7d8359c0 100644 --- a/examples/wayland/minimal-qml/CMakeLists.txt +++ b/examples/wayland/minimal-qml/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(minimal-qml +qt_add_executable(minimal-qml main.cpp ) target_link_libraries(minimal-qml PUBLIC diff --git a/examples/wayland/multi-output/CMakeLists.txt b/examples/wayland/multi-output/CMakeLists.txt index da8981806..56274057f 100644 --- a/examples/wayland/multi-output/CMakeLists.txt +++ b/examples/wayland/multi-output/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(multi-output +qt_add_executable(multi-output main.cpp ) target_link_libraries(multi-output PUBLIC diff --git a/examples/wayland/multi-screen/CMakeLists.txt b/examples/wayland/multi-screen/CMakeLists.txt index d654e3003..4be67cf79 100644 --- a/examples/wayland/multi-screen/CMakeLists.txt +++ b/examples/wayland/multi-screen/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(multi-screen +qt_add_executable(multi-screen main.cpp ) target_link_libraries(multi-screen PUBLIC diff --git a/examples/wayland/overview-compositor/CMakeLists.txt b/examples/wayland/overview-compositor/CMakeLists.txt index 93cd7cacb..28b4a4730 100644 --- a/examples/wayland/overview-compositor/CMakeLists.txt +++ b/examples/wayland/overview-compositor/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(overview-compositor +qt_add_executable(overview-compositor main.cpp ) target_link_libraries(overview-compositor PUBLIC diff --git a/examples/wayland/pure-qml/CMakeLists.txt b/examples/wayland/pure-qml/CMakeLists.txt index cf17c5bb8..043f0dec2 100644 --- a/examples/wayland/pure-qml/CMakeLists.txt +++ b/examples/wayland/pure-qml/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(pure-qml +qt_add_executable(pure-qml main.cpp ) target_link_libraries(pure-qml PUBLIC diff --git a/examples/wayland/server-buffer/compositor/CMakeLists.txt b/examples/wayland/server-buffer/compositor/CMakeLists.txt index 383d4f3d7..bd0de291b 100644 --- a/examples/wayland/server-buffer/compositor/CMakeLists.txt +++ b/examples/wayland/server-buffer/compositor/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS WaylandCompositor) -add_qt_gui_executable(compositor +qt_add_executable(compositor main.cpp sharebufferextension.cpp sharebufferextension.h ) diff --git a/examples/wayland/server-buffer/cpp-client/CMakeLists.txt b/examples/wayland/server-buffer/cpp-client/CMakeLists.txt index b91a523ff..03a72f071 100644 --- a/examples/wayland/server-buffer/cpp-client/CMakeLists.txt +++ b/examples/wayland/server-buffer/cpp-client/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS WaylandClient) find_package(Qt6 COMPONENTS OpenGL) -add_qt_gui_executable(server-buffer-cpp-client +qt_add_executable(server-buffer-cpp-client main.cpp sharebufferextension.cpp sharebufferextension.h ) diff --git a/examples/wayland/server-side-decoration/CMakeLists.txt b/examples/wayland/server-side-decoration/CMakeLists.txt index b87222b78..eeb2939d4 100644 --- a/examples/wayland/server-side-decoration/CMakeLists.txt +++ b/examples/wayland/server-side-decoration/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(server-side-decoration +qt_add_executable(server-side-decoration main.cpp ) target_link_libraries(server-side-decoration PUBLIC diff --git a/examples/wayland/spanning-screens/CMakeLists.txt b/examples/wayland/spanning-screens/CMakeLists.txt index b461b766d..01589ae16 100644 --- a/examples/wayland/spanning-screens/CMakeLists.txt +++ b/examples/wayland/spanning-screens/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(spanning-screens +qt_add_executable(spanning-screens main.cpp ) target_link_libraries(spanning-screens PUBLIC diff --git a/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt b/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt index 9deb402ea..eb157a441 100644 --- a/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt +++ b/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS WaylandCompositor) -add_qt_gui_executable(texture-sharing-custom-compositor +qt_add_executable(texture-sharing-custom-compositor main.cpp ) target_link_libraries(texture-sharing-custom-compositor PUBLIC diff --git a/examples/wayland/texture-sharing/qml-client/CMakeLists.txt b/examples/wayland/texture-sharing/qml-client/CMakeLists.txt index 9e3e1cb28..40a477720 100644 --- a/examples/wayland/texture-sharing/qml-client/CMakeLists.txt +++ b/examples/wayland/texture-sharing/qml-client/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(qml-client +qt_add_executable(qml-client main.cpp ) target_link_libraries(qml-client PUBLIC |