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 /examples | |
parent | e7fd60086723aba5ea73c51dffa274889d1a39ea (diff) | |
download | qtwayland-97f3bd40bc35caaf3dd7eddcab23ce821fb5460a.tar.gz |
CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661
Change-Id: I640a3c4281040309a6feb3585c4134190627d17d
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'examples')
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 d38efb1b..99f88035 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 20241bc5..e2afa3cf 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 236c5664..010841e3 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 747a491d..4dfc7969 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 31e8255e..b1e5226d 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 37f47edc..897c8a34 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 ef80384f..535ec131 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 34e40a9e..e7d8359c 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 da898180..56274057 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 d654e300..4be67cf7 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 93cd7cac..28b4a473 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 cf17c5bb..043f0dec 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 383d4f3d..bd0de291 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 b91a523f..03a72f07 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 b87222b7..eeb2939d 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 b461b766..01589ae1 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 9deb402e..eb157a44 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 9e3e1cb2..40a47772 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 |