summaryrefslogtreecommitdiffstats
path: root/tests/manual/wasm
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-08-12 14:13:52 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-08-19 18:41:53 +0200
commit60ca8ca5bc7dbe0c57bdc63282a277ac8c31b684 (patch)
tree624a9a4c2241d29c93b67d9b1e58e59b7a165a55 /tests/manual/wasm
parent0d0b36a1847cd3ca3f62fc4702e486a25d85de2a (diff)
wasm: add cmake build for manual tests
The tests can now be built with qt-cmake-standalone-test. Change-Id: I098340a9f755806061de281fbc25cb00c61f33f0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/wasm')
-rw-r--r--tests/manual/wasm/CMakeLists.txt4
-rw-r--r--tests/manual/wasm/README.md12
-rw-r--r--tests/manual/wasm/cursors/CMakeLists.txt12
-rw-r--r--tests/manual/wasm/localfiles/CMakeLists.txt9
4 files changed, 37 insertions, 0 deletions
diff --git a/tests/manual/wasm/CMakeLists.txt b/tests/manual/wasm/CMakeLists.txt
new file mode 100644
index 0000000000..af319541d5
--- /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 0000000000..4b205027db
--- /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 0000000000..674c6d4d2b
--- /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 0000000000..4e06a916ad
--- /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
+)