Warning, /libraries/ktextaddons/texttranslator/translator/plugins/bing/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 include_directories(${CMAKE_CURRENT_BINARY_DIR}/)
0004 add_library(translator_bing MODULE)
0005 ecm_qt_declare_logging_category(translator_debug_bing_SRCS
0006     HEADER bingtranslator_debug.h
0007     IDENTIFIER TRANSLATOR_BING_LOG
0008     CATEGORY_NAME org.kde.kf.texttranslator.bing
0009     OLD_CATEGORY_NAMES org.kde.kf${KF_MAJOR_VERSION}.texttranslator.bing
0010     DESCRIPTION "bing translator"
0011     EXPORT KTEXTADDONS
0012 )
0013 target_sources(translator_bing PRIVATE
0014     ${translator_debug_bing_SRCS}
0015     bingengineclient.cpp
0016     bingengineclient.h
0017     bingengineplugin.cpp
0018     bingengineplugin.h
0019 )
0020 
0021 target_link_libraries(translator_bing PRIVATE KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n)
0022 
0023 install(TARGETS translator_bing  DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/translator/)
0024 if (BUILD_TESTING)
0025     add_subdirectory(autotests)
0026 endif()
0027