Warning, /pim/kdepim-addons/kmail/plugins/mailmergeplugin/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 # convenience macro to add qtest unit tests 0004 macro(add_kmail_mailmergeunittest _source ) 0005 set(_test ${_source}) 0006 get_filename_component(_name ${_source} NAME_WE) 0007 add_executable( ${_name} ${_test} ${_name}.h) 0008 add_test(NAME ${_name} COMMAND ${_name} ) 0009 ecm_mark_as_test(kmail-${_name}) 0010 target_link_libraries( ${_name} 0011 KPim6::PimCommon 0012 Qt::Test 0013 KF6::KIOCore 0014 KF6::KIOWidgets 0015 KF6::I18n 0016 mailmerge 0017 ) 0018 endmacro () 0019 0020 add_kmail_mailmergeunittest( mailmergewidgettest.cpp) 0021 add_kmail_mailmergeunittest(addressbookwidgettest.cpp) 0022 add_kmail_mailmergeunittest(csvwidgettest.cpp) 0023 add_kmail_mailmergeunittest(mailmergedialogtest.cpp) 0024 add_kmail_mailmergeunittest(mailmergejobtest.cpp)