From 60ca8ca5bc7dbe0c57bdc63282a277ac8c31b684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Thu, 12 Aug 2021 14:13:52 +0200 Subject: [PATCH] wasm: add cmake build for manual tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tests can now be built with qt-cmake-standalone-test. Change-Id: I098340a9f755806061de281fbc25cb00c61f33f0 Reviewed-by: Tor Arne Vestbø --- tests/manual/wasm/CMakeLists.txt | 4 ++++ tests/manual/wasm/README.md | 12 ++++++++++++ tests/manual/wasm/cursors/CMakeLists.txt | 12 ++++++++++++ tests/manual/wasm/localfiles/CMakeLists.txt | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 tests/manual/wasm/CMakeLists.txt create mode 100644 tests/manual/wasm/README.md create mode 100644 tests/manual/wasm/cursors/CMakeLists.txt create mode 100644 tests/manual/wasm/localfiles/CMakeLists.txt diff --git a/tests/manual/wasm/CMakeLists.txt b/tests/manual/wasm/CMakeLists.txt new file mode 100644 index 00000000000..af319541d5e --- /dev/null +++ b/tests/manual/wasm/CMakeLists.txt @@ -0,0 +1,4 @@ +if(QT_FEATURE_widgets) +add_subdirectory(cursors) +add_subdirectory(localfiles) +endif() diff --git a/tests/manual/wasm/README.md b/tests/manual/wasm/README.md new file mode 100644 index 00000000000..4b205027db4 --- /dev/null +++ b/tests/manual/wasm/README.md @@ -0,0 +1,12 @@ +Manual tests and examples for Qt on WebAssembly +=============================================== + +These examples demonstrates various technical aspects of +the Qt for WebAssambly platform port, and can be used +as a reference when writing application code. + +Content +------- + + cursors Cursor handling + localfiles Local file download and upload diff --git a/tests/manual/wasm/cursors/CMakeLists.txt b/tests/manual/wasm/cursors/CMakeLists.txt new file mode 100644 index 00000000000..674c6d4d2bc --- /dev/null +++ b/tests/manual/wasm/cursors/CMakeLists.txt @@ -0,0 +1,12 @@ +qt_internal_add_manual_test(cursors + GUI + SOURCES + MainWindow.cpp MainWindow.h MainWindow.ui + main.cpp + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Widgets + ENABLE_AUTOGEN_TOOLS + uic +) diff --git a/tests/manual/wasm/localfiles/CMakeLists.txt b/tests/manual/wasm/localfiles/CMakeLists.txt new file mode 100644 index 00000000000..4e06a916ad8 --- /dev/null +++ b/tests/manual/wasm/localfiles/CMakeLists.txt @@ -0,0 +1,9 @@ +qt_internal_add_manual_test(localfiles + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Widgets +)