summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2020-11-16 20:44:22 +0100
committerAleix Pol <aleixpol@kde.org>2021-01-24 11:17:48 +0100
commitf0ab56f9ef675e4af85fe59166fa569048361adc (patch)
tree4002da3bde83ae620f9e75d31b0e2fa48e9ec2df /tests/manual
parentea3ea45fb2eb08e9db383ea47865974f496e8c39 (diff)
downloadqtwayland-f0ab56f9ef675e4af85fe59166fa569048361adc.tar.gz
Fix building QtWayland manual tests
It was missing a CMakeLists.txt file, this way we can build them if the right variables are enabled. Change-Id: I13e5be9c7c9954c9091c0d140a5af696ae8961b9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/CMakeLists.txt11
-rw-r--r--tests/manual/texture-sharing/cpp-client/CMakeLists.txt1
-rw-r--r--tests/manual/texture-sharing/cpp-client/cpp-client.pro2
3 files changed, 13 insertions, 1 deletions
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
new file mode 100644
index 00000000..9399a10a
--- /dev/null
+++ b/tests/manual/CMakeLists.txt
@@ -0,0 +1,11 @@
+if(TARGET Qt::WaylandClient)
+ add_subdirectory(qmlclient)
+ add_subdirectory(subsurface)
+ add_subdirectory(texture-sharing/cpp-client)
+ add_subdirectory(texture-sharing-2)
+endif()
+
+if(TARGET Qt::WaylandCompositor)
+ #add_subdirectory(wip-cpp-compositor)
+ add_subdirectory(scaling-compositor)
+endif()
diff --git a/tests/manual/texture-sharing/cpp-client/CMakeLists.txt b/tests/manual/texture-sharing/cpp-client/CMakeLists.txt
index f924dca9..f6495a5b 100644
--- a/tests/manual/texture-sharing/cpp-client/CMakeLists.txt
+++ b/tests/manual/texture-sharing/cpp-client/CMakeLists.txt
@@ -14,6 +14,7 @@ qt_internal_add_manual_test(cpp-client
PUBLIC_LIBRARIES
Qt::Gui
Qt::GuiPrivate
+ Qt::OpenGL
Qt::WaylandClientPrivate
)
diff --git a/tests/manual/texture-sharing/cpp-client/cpp-client.pro b/tests/manual/texture-sharing/cpp-client/cpp-client.pro
index d251791d..99a100e0 100644
--- a/tests/manual/texture-sharing/cpp-client/cpp-client.pro
+++ b/tests/manual/texture-sharing/cpp-client/cpp-client.pro
@@ -1,4 +1,4 @@
-QT += waylandclient-private gui-private
+QT += waylandclient-private gui-private opengl
CONFIG += wayland-scanner
WAYLANDCLIENTSOURCES += $$PWD/../../../../src/extensions/qt-texture-sharing-unstable-v1.xml