Warning, /pim/pim-sieve-editor/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 add_executable( serversievesettingstest  serversievesettingstest.cpp)
0004 add_test(NAME serversievesettingstest COMMAND serversievesettingstest)
0005 ecm_mark_as_test(serversievesettingstest)
0006 target_link_libraries( serversievesettingstest Qt::Test Qt::Widgets KPim6::MailTransport KF6::I18n KF6::ConfigGui KPim6::KSieveUi libsieveeditor)
0007 
0008 set( sieveeditorutiltest_source sieveeditorutiltest.cpp )
0009 add_executable( sieveeditorutiltest ${sieveeditorutiltest_source})
0010 add_test(NAME sieveeditorutiltest COMMAND sieveeditorutiltest)
0011 ecm_mark_as_test(sieveeditorutiltest)
0012 target_link_libraries( sieveeditorutiltest Qt::Test KPim6::MailTransport KF6::I18n KF6::ConfigGui KPim6::KSieveUi libsieveeditor)
0013 
0014 # convenience macro to add qtest unit tests
0015 macro(add_sieveserver_unittest _source)
0016     set(_test ${_source} )
0017     get_filename_component(_name ${_source} NAME_WE)
0018     add_executable( ${_name} ${_test} )
0019     add_test( NAME ${_name} COMMAND ${_name} )
0020     ecm_mark_as_test(sieveserver-${_name})
0021     target_link_libraries( ${_name}
0022         Qt::Test
0023         Qt::Widgets
0024         KF6::I18n
0025         KPim6::MailTransport
0026         KPim6::KSieveUi
0027         libsieveeditor
0028         )
0029 endmacro ()
0030 
0031 add_sieveserver_unittest( sieveeditorconfigureserverpagetest.cpp )
0032