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:
parent
0d0b36a184
commit
60ca8ca5bc
4
tests/manual/wasm/CMakeLists.txt
Normal file
4
tests/manual/wasm/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
if(QT_FEATURE_widgets)
|
||||
add_subdirectory(cursors)
|
||||
add_subdirectory(localfiles)
|
||||
endif()
|
12
tests/manual/wasm/README.md
Normal file
12
tests/manual/wasm/README.md
Normal 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
|
12
tests/manual/wasm/cursors/CMakeLists.txt
Normal file
12
tests/manual/wasm/cursors/CMakeLists.txt
Normal 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
|
||||
)
|
9
tests/manual/wasm/localfiles/CMakeLists.txt
Normal file
9
tests/manual/wasm/localfiles/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
qt_internal_add_manual_test(localfiles
|
||||
GUI
|
||||
SOURCES
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user