Warning, /network/ruqola/src/plugins/authentication/password/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 ecm_qt_declare_logging_category(ruqola_passwordauthenticationplugin_test_SRCS HEADER passwordauthenticationplugin_debug.h
0004     IDENTIFIER RUQOLA_PASSWORDAUTHENTICATION_PLUGIN_LOG CATEGORY_NAME org.kde.ruqola_passwordauthenticationplugin)
0005 
0006 macro(add_ruqola_plugin_unittest _source _additional)
0007     set( _test ${ruqola_passwordauthenticationplugin_test_SRCS} ${_source}  ${_additional})
0008     get_filename_component(_name ${_source} NAME_WE)
0009     add_executable(${_name} ${_test} ${_name}.h)
0010     add_test(NAME ${_name} COMMAND ${_name} )
0011 
0012     ecm_mark_as_test(${_name})
0013     target_link_libraries( ${_name} Qt::Test KF6::I18n libruqolacore)
0014     set_target_properties(${_name} PROPERTIES DISABLE_PRECOMPILE_HEADERS ON)
0015 endmacro ()
0016 
0017 add_ruqola_plugin_unittest(passwordpluginauthenticationtest.cpp "../passwordpluginauthentication.cpp;../passwordauthenticationinterface.cpp")
0018 add_ruqola_plugin_unittest(passwordauthenticationinterfacetest.cpp "../passwordauthenticationinterface.cpp")