Warning, /pim/libksieve/src/ksieveui/sievescriptdebugger/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
0004 
0005 macro( add_sievescriptdebugger_test _source )
0006   set( _test ${_source})
0007   get_filename_component( _name ${_source} NAME_WE )
0008   add_executable( ${_name} ${_test} ${_name}.h )
0009   add_test(NAME ${_name} COMMAND ${_name})
0010   ecm_mark_as_test(sievescriptdebugger-${_name})
0011   target_link_libraries( ${_name}  KPim6KSieveUi Qt::Test KF6::Completion KF6::KIOWidgets
0012       )
0013   if (TARGET KF6::TextEditTextToSpeech)
0014       target_link_libraries( ${_name} KF6::TextEditTextToSpeech)
0015   endif()
0016 endmacro()
0017 
0018 
0019 add_sievescriptdebugger_test( sievescriptdebuggerdialogtest.cpp )
0020 add_sievescriptdebugger_test( sievescriptdebuggerwidgettest.cpp )
0021 add_sievescriptdebugger_test( sievescriptdebuggerfrontendwidgettest.cpp )
0022 add_sievescriptdebugger_test( sievescriptdebuggerwarningtest.cpp )