Warning, /pim/kdepim-addons/plugins/messageviewerplugins/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 set(common_SRCS) 0004 ecm_qt_declare_logging_category(common_SRCS HEADER createeventplugin_debug.h IDENTIFIER CREATEEVENTPLUGIN_LOG CATEGORY_NAME org.kde.pim.createeventplugin) 0005 ecm_qt_declare_logging_category(common_SRCS HEADER createnoteplugin_debug.h IDENTIFIER CREATENOTEPLUGIN_LOG CATEGORY_NAME org.kde.pim.createnoteplugin) 0006 ecm_qt_declare_logging_category(common_SRCS HEADER createtodoplugin_debug.h IDENTIFIER CREATETODOPLUGIN_LOG CATEGORY_NAME org.kde.pim.createtodoplugin) 0007 0008 macro(add_kdepim_addons_viewerplugin_unittest _source _additional) 0009 set( _test ${_source} ${_additional} ${common_SRCS}) 0010 get_filename_component(_name ${_source} NAME_WE) 0011 ecm_add_test(${_test} ${_name}.h 0012 TEST_NAME ${_name} 0013 NAME_PREFIX "kdepim-addons-" 0014 LINK_LIBRARIES KPim6::MessageViewer KPim6::Libkleo Qt::Test KF6::KIOCore KPim6::Mime 0015 KPim6::AkonadiCore KPim6::AkonadiNotes KF6::CalendarCore KPim6::GrantleeTheme KPim6::IncidenceEditor 0016 KPim6::AkonadiWidgets KF6::XmlGui KPim6::CalendarSupport KF6::TextTranslator 0017 ) 0018 0019 endmacro () 0020 0021 0022 0023 macro(add_kdepim_addons_viewerplugin_class_unittest _source ) 0024 set( _test ${_source} ${common_SRCS}) 0025 get_filename_component(_name ${_source} NAME_WE) 0026 0027 ecm_add_test(${_test} ${_name}.h 0028 TEST_NAME ${_name} 0029 NAME_PREFIX "kdepim-addons-" 0030 LINK_LIBRARIES KPim6::MessageViewer KPim6::Libkleo Qt::Test KF6::KIOCore KPim6::Mime KPim6::AkonadiCore KPim6::AkonadiNotes KF6::CalendarCore KPim6::GrantleeTheme KPim6::AkonadiWidgets KPim6::CalendarSupport 0031 ) 0032 endmacro () 0033 0034 0035 macro(add_kdepim_addons_viewerplugin_widget_unittest _source _additional ) 0036 set( _test ${_source} ${_additional} ${common_SRCS}) 0037 get_filename_component(_name ${_source} NAME_WE) 0038 ecm_add_test(${_test} ${_name}.h 0039 TEST_NAME ${_name} 0040 NAME_PREFIX "kdepim-addons-" 0041 LINK_LIBRARIES KPim6::MessageViewer KPim6::Libkleo Qt::Test KF6::KIOCore KPim6::Mime KPim6::AkonadiCore KPim6::AkonadiNotes KF6::CalendarCore KPim6::GrantleeTheme KPim6::IncidenceEditor KPim6::AkonadiWidgets KPim6::CalendarSupport) 0042 endmacro () 0043 0044 0045 add_kdepim_addons_viewerplugin_class_unittest(viewerpluginmanagertest.cpp) 0046 add_kdepim_addons_viewerplugin_widget_unittest(todoedittest.cpp "../createtodoplugin/todoedit.cpp") 0047 add_kdepim_addons_viewerplugin_widget_unittest(noteedittest.cpp "../createnoteplugin/noteedit.cpp") 0048 set_tests_properties(kdepim-addons-todoedittest PROPERTIES ENVIRONMENT "LC_ALL=C") 0049 0050 add_kdepim_addons_viewerplugin_widget_unittest(eventedittest.cpp "../createeventplugin/eventedit.cpp;../createeventplugin/eventdatetimewidget.cpp") 0051 add_kdepim_addons_viewerplugin_widget_unittest(eventdatetimewidgettest.cpp "../createeventplugin/eventdatetimewidget.cpp") 0052 add_kdepim_addons_viewerplugin_unittest(viewerplugincreateeventtest.cpp "../createeventplugin/createeventjob.cpp;../createeventplugin/eventdatetimewidget.cpp;../createeventplugin/eventedit.cpp;../createeventplugin/viewerplugincreateevent.cpp;../createeventplugin/viewerplugincreateeventinterface.cpp") 0053 add_kdepim_addons_viewerplugin_unittest(viewerplugincreatetodotest.cpp "../createtodoplugin/viewerplugincreatetodo.cpp;../createtodoplugin/viewerplugincreatetodointerface.cpp;../createtodoplugin/todoedit.cpp;../createtodoplugin/createtodojob.cpp") 0054 add_kdepim_addons_viewerplugin_unittest(viewerplugincreatenotetest.cpp "../createnoteplugin/noteedit.cpp;../createnoteplugin/viewerplugincreatenote.cpp;../createnoteplugin/viewerplugincreatenoteinterface.cpp;../createnoteplugin/createnotejob.cpp") 0055 add_kdepim_addons_viewerplugin_unittest(viewerplugintranslatortest.cpp "../common/translatorplugin/viewerplugintranslator.cpp;../common/translatorplugin/viewerplugintranslatorinterface.cpp")