Warning, /libraries/ktextaddons/texttranslator/translator/plugins/bergamot/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 add_definitions( -DBERGAMOT_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")
0004 
0005 macro(add_translator_bergamot_unittest _source)
0006     get_filename_component(_name ${_source} NAME_WE)
0007     ecm_add_test(${_source} ${_name}.h
0008         TEST_NAME ${_name}
0009         NAME_PREFIX "translator-"
0010         LINK_LIBRARIES Qt::Test
0011         Qt::Widgets
0012         libbergamot
0013     )
0014 endmacro()
0015 add_translator_bergamot_unittest(bergamotengineutilstest.cpp)
0016 add_translator_bergamot_unittest(translatortest.cpp)
0017 add_translator_bergamot_unittest(bergamotenginewidgettest.cpp)
0018 add_translator_bergamot_unittest(bergamotenginelanguagewidgettest.cpp)
0019 add_translator_bergamot_unittest(begamotenginedialogtest.cpp)
0020 add_translator_bergamot_unittest(bergamotenginesettingswidgettest.cpp)
0021 add_translator_bergamot_unittest(managermodeltranslatortest.cpp)
0022 add_translator_bergamot_unittest(extractlanguagejobtest.cpp)
0023 add_translator_bergamot_unittest(downloadlanguagejobtest.cpp)