aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/ecmascripttests/CMakeLists.txt
blob: 3fd6d3bc9c3d6dfddf70761ff7bdc4ec11185954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#####################################################################
## tst_ecmascripttests Test:
#####################################################################

qt_internal_add_test(tst_ecmascripttests
    SOURCES
        qjstest/test262runner.cpp qjstest/test262runner.h
        tst_ecmascripttests.cpp
    DEFINES
        SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
    PUBLIC_LIBRARIES
        Qt::QmlPrivate
)

set_property(TEST tst_ecmascripttests APPEND PROPERTY ENVIRONMENT "QTEST_FUNCTION_TIMEOUT=900000")
if(NOT CMAKE_CROSSCOMPILING)
    add_subdirectory(qjstest)
endif()