Warning, /libraries/ktextaddons/texttranslator/translator/plugins/deepl/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_deepl MODULE) 0005 ecm_qt_declare_logging_category(translator_debug_deepl_SRCS 0006 HEADER deepltranslator_debug.h 0007 IDENTIFIER TRANSLATOR_DEEPL_LOG 0008 CATEGORY_NAME org.kde.kf.texttranslator.deepl 0009 OLD_CATEGORY_NAMES org.kde.kf${KF_MAJOR_VERSION}.texttranslator.deepl 0010 DESCRIPTION "deepl translator" 0011 EXPORT KTEXTADDONS 0012 ) 0013 target_sources(translator_deepl PRIVATE 0014 ${translator_debug_deepl_SRCS} 0015 deeplengineclient.cpp 0016 deeplengineclient.h 0017 deeplengineplugin.cpp 0018 deeplengineplugin.h 0019 deeplengineconfiguredialog.h 0020 deeplengineconfiguredialog.cpp 0021 deeplengineconfigurewidget.h 0022 deeplengineconfigurewidget.cpp 0023 deeplengineutil.h 0024 deeplengineutil.cpp 0025 ) 0026 0027 target_link_libraries(translator_deepl PRIVATE 0028 KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::ConfigCore 0029 KF${KF_MAJOR_VERSION}::TextAddonsWidgets 0030 KF${KF_MAJOR_VERSION}::WidgetsAddons 0031 ) 0032 if (QT_MAJOR_VERSION STREQUAL "6") 0033 target_link_libraries(translator_deepl PRIVATE qt6keychain) 0034 else() 0035 target_link_libraries(translator_deepl PRIVATE qt5keychain) 0036 endif() 0037 0038 install(TARGETS translator_deepl DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/translator/) 0039 if (BUILD_TESTING) 0040 add_subdirectory(autotests) 0041 endif() 0042