Warning, /libraries/ktextaddons/texttranslator/translator/plugins/deepl/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 if (QT_MAJOR_VERSION STREQUAL "6") 0004 set(translator_deepl_LIB qt6keychain) 0005 else() 0006 set(translator_deepl_LIB qt5keychain) 0007 endif() 0008 ecm_add_test(deeplengineclienttest.cpp deeplengineclienttest.h ../deeplengineclient.cpp ../deeplengineplugin.cpp ../deeplengineutil.cpp ${translator_debug_deepl_SRCS} 0009 ../deeplengineconfiguredialog.cpp 0010 ../deeplengineconfigurewidget.cpp 0011 TEST_NAME deeplengineclienttest 0012 0013 LINK_LIBRARIES KF${KF_MAJOR_VERSION}::TextAddonsWidgets KF${KF_MAJOR_VERSION}::WidgetsAddons Qt::Test Qt::Gui KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::ConfigCore ${translator_deepl_LIB} 0014 ) 0015 0016 ##### 0017 ecm_add_test(deeplengineconfiguredialogtest.cpp deeplengineconfiguredialogtest.h ../deeplengineconfiguredialog.cpp ../deeplengineconfigurewidget.cpp ${translator_debug_deepl_SRCS} 0018 TEST_NAME deeplengineconfiguredialogtest 0019 0020 LINK_LIBRARIES KF${KF_MAJOR_VERSION}::TextAddonsWidgets Qt::Test Qt::Gui KF${KF_MAJOR_VERSION}::WidgetsAddons KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::ConfigCore 0021 ) 0022 0023 ##### 0024 ecm_add_test(deeplengineconfigurewidgettest.cpp deeplengineconfigurewidgettest.h ../deeplengineconfigurewidget.cpp 0025 TEST_NAME deeplengineconfigurewidgettest 0026 0027 LINK_LIBRARIES KF${KF_MAJOR_VERSION}::TextAddonsWidgets Qt::Test Qt::Gui KF${KF_MAJOR_VERSION}::WidgetsAddons KF${KF_MAJOR_VERSION}::TextTranslator KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::ConfigCore 0028 )