Changeset View
Changeset View
Standalone View
Standalone View
kmail/grammarplugins/grammarcommon/autotests/CMakeLists.txt
1 | macro(add_kmail_grammarcommon_unittest _source) | 1 | macro(add_kmail_grammarcommon_unittest _source) | ||
---|---|---|---|---|---|
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_grammalecte-${_name}) | 7 | ecm_mark_as_test(kmail_grammalecte-${_name}) | ||
8 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::I18n grammarcommon) | 8 | target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::I18n grammarcommon) | ||
9 | endmacro () | 9 | endmacro () | ||
10 | 10 | | |||
11 | add_kmail_grammarcommon_unittest(grammarresulttextedittest.cpp) | 11 | add_kmail_grammarcommon_unittest(grammarresulttextedittest.cpp) |