Changeset View
Changeset View
Standalone View
Standalone View
kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
1 | macro(add_kmail_editorplugin_unittest _source _additional) | 1 | macro(add_kmail_editorplugin_unittest _source _additional) | ||
---|---|---|---|---|---|
2 | set( _test ${_source} ${_additional}) | 2 | set( _test ${_source} ${_additional}) | ||
3 | get_filename_component(_name ${_source} NAME_WE) | 3 | get_filename_component(_name ${_source} NAME_WE) | ||
4 | add_executable( ${_name} ${_test} ) | 4 | add_executable( ${_name} ${_test} ) | ||
5 | add_test(NAME ${_name} COMMAND ${_name} ) | 5 | add_test(NAME ${_name} COMMAND ${_name} ) | ||
6 | 6 | | |||
7 | ecm_mark_as_test(kmail_editorplugin-${_name}) | 7 | ecm_mark_as_test(kmail_editorplugin-${_name}) | ||
8 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n) | 8 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::MessageComposer KF5::I18n) | ||
9 | endmacro () | 9 | endmacro () | ||
10 | 10 | | |||
11 | add_kmail_editorplugin_unittest(autocorrectionplugineditortest.cpp "../autocorrectionplugineditor.cpp;../autocorrectionplugineditorinterface.cpp") | 11 | add_kmail_editorplugin_unittest(autocorrectionplugineditortest.cpp "../autocorrectionplugineditor.cpp;../autocorrectionplugineditorinterface.cpp") | ||
12 | 12 | | |||
13 | add_kmail_editorplugin_unittest(autocorrectionplugineditorinterfacetest.cpp "../autocorrectionplugineditorinterface.cpp") | 13 | add_kmail_editorplugin_unittest(autocorrectionplugineditorinterfacetest.cpp "../autocorrectionplugineditorinterface.cpp") | ||
14 | 14 | |