summaryrefslogtreecommitdiffstats
path: root/tests/manual/wasm/network/sockify_sockets_auto/CMakeLists.txt
blob: 68a39937787626eb10baf2246ee57a037ff903eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
qt_internal_add_manual_test(sockify_sockets_auto
    SOURCES
        main.cpp
        ../../qtwasmtestlib/qtwasmtestlib.cpp
    LIBRARIES
        Qt::Core
        Qt::Network
)

include_directories(../../qtwasmtestlib/)

add_custom_command(
    TARGET sockify_sockets_auto POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy
            ${CMAKE_CURRENT_SOURCE_DIR}/sockify_sockets_auto.html
            ${CMAKE_CURRENT_BINARY_DIR}/sockify_sockets_auto.html)

add_custom_command(
    TARGET sockify_sockets_auto POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy
            ${CMAKE_CURRENT_SOURCE_DIR}/../../qtwasmtestlib/qtwasmtestlib.js
            ${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)