summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/spellchecking/CMakeLists.txt
blob: d0c7656c1e91f2bf306d4fac8313697919bc2df6 (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
25
26
27
28
29
30
31
32
33
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

include(../../util/util.cmake)
include(../../../../src/core/api/Qt6WebEngineCoreMacros.cmake)

qt_internal_add_test(tst_spellchecking
    SOURCES
        tst_spellchecking.cpp
    LIBRARIES
        Qt::WebEngineWidgets
        Test::Util
)

qt_internal_add_resource(tst_spellchecking "tst_spellchecking"
    PREFIX
        "/"
    FILES
        "resources/index.html"
)

file(GLOB_RECURSE dicts
    ABSOLUTE ${CMAKE_CURRENT_LIST_DIR}/dict
    *.dic
)

foreach(dictFile ${dicts})
    qt_add_webengine_dictionary(
        TARGET tst_spellchecking
        SOURCE "${dictFile}"
        OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    )
endforeach()