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>
This commit is contained in:
Morten Johan Sørvig 2021-08-12 14:13:52 +02:00
parent 0d0b36a184
commit 60ca8ca5bc
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,4 @@
if(QT_FEATURE_widgets)
add_subdirectory(cursors)
add_subdirectory(localfiles)
endif()

View File

@ -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

View File

@ -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
)

View File

@ -0,0 +1,9 @@
qt_internal_add_manual_test(localfiles
GUI
SOURCES
main.cpp
PUBLIC_LIBRARIES
Qt::Core
Qt::Gui
Qt::Widgets
)