diff options
Diffstat (limited to 'tests/auto/wasm/selenium/CMakeLists.txt')
-rw-r--r-- | tests/auto/wasm/selenium/CMakeLists.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/auto/wasm/selenium/CMakeLists.txt b/tests/auto/wasm/selenium/CMakeLists.txt new file mode 100644 index 0000000000..7b16af359f --- /dev/null +++ b/tests/auto/wasm/selenium/CMakeLists.txt @@ -0,0 +1,51 @@ +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qwasmwindow_harness LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST Core Gui Test) +endif() + +qt_internal_add_test(tst_qwasmwindow_harness + MANUAL + NO_BATCH + SOURCES + tst_qwasmwindow_harness.cpp + LIBRARIES + Qt::Core + Qt::Gui +) + +set_target_properties(tst_qwasmwindow_harness PROPERTIES CROSSCOMPILING_EMULATOR "") # disabling emrun +qt_internal_create_test_script(NAME tst_qwasmwindow_harness + COMMAND bash + ARGS run.sh + WORKING_DIRECTORY "${test_working_dir}" + OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/tst_qwasmwindow_harnessWrapper$<CONFIG>.cmake" +) + +add_custom_command( + TARGET tst_qwasmwindow_harness POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + ${CMAKE_CURRENT_SOURCE_DIR}/tst_qwasmwindow_harness.html + ${CMAKE_CURRENT_BINARY_DIR}/tst_qwasmwindow_harness.html +) + +add_custom_command( + TARGET tst_qwasmwindow_harness POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../util/wasm/qtwasmserver/qtwasmserver.py + ${CMAKE_CURRENT_BINARY_DIR}/qtwasmserver.py +) + +add_custom_command( + TARGET tst_qwasmwindow_harness POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + ${CMAKE_CURRENT_SOURCE_DIR}/qwasmwindow.py + ${CMAKE_CURRENT_BINARY_DIR}/qwasmwindow.py +) + +add_custom_command( + TARGET tst_qwasmwindow_harness POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + ${CMAKE_CURRENT_SOURCE_DIR}/run.sh + ${CMAKE_CURRENT_BINARY_DIR}/run.sh +) |