qt5base-lts/tests/manual/wasm/qwasmwindow/CMakeLists.txt
Amir Masoud Abdol 8c4d81484c Replace PUBLIC_LIBRARIES with LIBRARIES in qt_internal_add_manual_test
Noticed the warnings when building the manual tests.

Pick-to: 6.5
Change-Id: I7f927f42f11d234ec3c980f36d8e12c0c49be712
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-04-13 20:16:08 +02:00

37 lines
1.0 KiB
CMake

qt_internal_add_manual_test(qwasmwindow_harness
SOURCES
qwasmwindow_harness.cpp
LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::GuiPrivate
)
add_custom_command(
TARGET qwasmwindow_harness POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/qwasmwindow_harness.html
${CMAKE_CURRENT_BINARY_DIR}/qwasmwindow_harness.html
)
add_custom_command(
TARGET 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 qwasmwindow_harness POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/run.sh
${CMAKE_CURRENT_BINARY_DIR}/run.sh
)
add_custom_command(
TARGET qwasmwindow_harness POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/../../../../util/wasm/qtwasmserver/qtwasmserver.py
${CMAKE_CURRENT_BINARY_DIR}/qtwasmserver.py
)