Warning, /pim/kdepim-addons/kmail/editorsendcheckplugins/automaticaddcontacts/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 0004 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) 0005 0006 set(automaticaddcontacts_common_SRCS) 0007 ecm_qt_declare_logging_category(automaticaddcontacts_common_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_automaticaddcontactsplugin) 0008 0009 0010 macro(add_kmail_automaticaddscontacts_unittest _source _additional) 0011 set( _test ${_source} ${_additional} ${automaticaddcontacts_common_SRCS}) 0012 get_filename_component(_name ${_source} NAME_WE) 0013 add_executable( ${_name} ${_test} ${_name}.h) 0014 add_test(NAME ${_name} COMMAND ${_name} ) 0015 0016 ecm_mark_as_test(kmail_editorplugin-${_name}) 0017 target_link_libraries( ${_name} Qt::Test KPim6::MessageComposer KF6::I18n KF6::Codecs 0018 KPim6::PimCommon KPim6::AkonadiContactWidgets) 0019 endmacro () 0020 0021 if (KDEPIM_RUN_AKONADI_TEST) 0022 set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE) 0023 set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE) 0024 0025 0026 add_akonadi_isolated_test_advanced(automaticaddcontactsplugintest.cpp "${automaticaddcontacts_common_SRCS};../automaticaddcontactsconfiguredialog.cpp;../automaticaddcontactsconfigurewidget.cpp;../automaticaddcontactsconfiguretab.cpp;../automaticaddcontactstabwidget.cpp;../automaticaddcontactsjob.cpp;../automaticaddcontactsplugin.cpp;../automaticaddcontactsinterface.cpp;../automaticaddcontactsconfigurewidget.cpp" "KPim6::MessageComposer;KF6::I18n;KPim6::PimCommon;KPim6::AkonadiContactWidgets;KF6::Codecs") 0027 add_akonadi_isolated_test_advanced(automaticaddcontactsconfigurewidgettest.cpp "${automaticaddcontacts_common_SRCS};../automaticaddcontactsconfiguretab.cpp;../automaticaddcontactstabwidget.cpp;../automaticaddcontactsconfigurewidget.cpp" "KPim6::MessageComposer;KF6::I18n;KPim6::PimCommon;KPim6::AkonadiContactCore") 0028 add_akonadi_isolated_test_advanced(automaticaddcontactstabwidgettest.cpp "${automaticaddcontacts_common_SRCS};../automaticaddcontactstabwidget.cpp" "KPim6::MessageComposer;KF6::I18n;KPim6::PimCommon;KPim6::AkonadiContactCore") 0029 add_akonadi_isolated_test_advanced(automaticaddcontactsconfiguretabtest.cpp "${automaticaddcontacts_common_SRCS};../automaticaddcontactstabwidget.cpp;../automaticaddcontactsconfiguretab.cpp" "KPim6::MessageComposer;KF6::I18n;KPim6::PimCommon;KPim6::AkonadiContactCore") 0030 endif() 0031 0032 0033 add_kmail_automaticaddscontacts_unittest(automaticaddcontactsjobtest.cpp "../automaticaddcontactsjob.cpp" "KPim6::MessageComposer;KF6::I18n;KPim6::PimCommon;KPim6::AkonadiContactCore;KF6::Codecs")