Changeset View
Changeset View
Standalone View
Standalone View
kmail/editorplugins/sharetext/autotests/CMakeLists.txt
1 | set(sharetextplugineditor_common_SRCS) | 1 | set(sharetextplugineditor_common_SRCS) | ||
---|---|---|---|---|---|
2 | ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin) | 2 | ecm_qt_declare_logging_category(sharetextplugineditor_common_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin) | ||
3 | 3 | | |||
4 | macro(add_kmail_editorplugin_unittest _source _additional) | 4 | macro(add_kmail_editorplugin_unittest _source _additional) | ||
5 | set( _test ${_source} ${_additional} ${sharetextplugineditor_common_SRCS}) | 5 | set( _test ${_source} ${_additional} ${sharetextplugineditor_common_SRCS}) | ||
6 | get_filename_component(_name ${_source} NAME_WE) | 6 | get_filename_component(_name ${_source} NAME_WE) | ||
7 | add_executable( ${_name} ${_test} ) | 7 | add_executable( ${_name} ${_test} ) | ||
8 | add_test(NAME ${_name} COMMAND ${_name} ) | 8 | add_test(NAME ${_name} COMMAND ${_name} ) | ||
9 | 9 | | |||
10 | ecm_mark_as_test(kmail_editorplugin-${_name}) | 10 | ecm_mark_as_test(kmail_editorplugin-${_name}) | ||
11 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n KF5::PimTextEdit) | 11 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::MessageComposer KF5::I18n KF5::PimTextEdit) | ||
12 | endmacro () | 12 | endmacro () | ||
13 | 13 | | |||
14 | add_kmail_editorplugin_unittest(sharetextplugineditortest.cpp "../sharetextplugineditor.cpp;../sharetextplugineditorinterface.cpp;../sharetextpurposemenuwidget.cpp") | 14 | add_kmail_editorplugin_unittest(sharetextplugineditortest.cpp "../sharetextplugineditor.cpp;../sharetextplugineditorinterface.cpp;../sharetextpurposemenuwidget.cpp") | ||
15 | 15 | | |||
16 | add_kmail_editorplugin_unittest(sharetextplugineditorinterfacetest.cpp "../sharetextplugineditorinterface.cpp;../sharetextpurposemenuwidget.cpp") | 16 | add_kmail_editorplugin_unittest(sharetextplugineditorinterfacetest.cpp "../sharetextplugineditorinterface.cpp;../sharetextpurposemenuwidget.cpp") |