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

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004 add_library(translator_yandex MODULE)
0005 target_sources(translator_yandex PRIVATE
0006     yandexengineclient.cpp
0007     yandexengineclient.h
0008     yandexengineplugin.cpp
0009     yandexengineplugin.h
0010 )
0011 ecm_qt_declare_logging_category(translator_yandex
0012     HEADER yandextranslator_debug.h
0013     IDENTIFIER TRANSLATOR_YANDEX_LOG
0014     CATEGORY_NAME org.kde.kf.texttranslator.yandex
0015     OLD_CATEGORY_NAMES org.kde.kf${KF_MAJOR_VERSION}.texttranslator.yandex
0016     DESCRIPTION "yandex translator"
0017     EXPORT KTEXTADDONS
0018 )
0019 
0020 target_link_libraries(translator_yandex PRIVATE KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n)
0021 
0022 install(TARGETS translator_yandex  DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/translator/)
0023 if (BUILD_TESTING)
0024     add_subdirectory(autotests)
0025 endif()