Warning, /libraries/ktextaddons/textgrammarcheck/grammalecte/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 0004 add_definitions( -DGRAMMALECTE_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data") 0005 0006 macro(add_grammalecte_unittest _source) 0007 set( _test ${_source}) 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(kmail_grammalecte-${_name}) 0013 target_link_libraries( ${_name} Qt::Test KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::TextGrammarCheck) 0014 endmacro () 0015 0016 add_grammalecte_unittest(grammalecteparsertest.cpp) 0017 add_grammalecte_unittest(grammalecteresultwidgettest.cpp) 0018 add_grammalecte_unittest(grammalectegrammarerrortest.cpp) 0019 if (NOT DISABLE_AUTOTEST_BROKEN_CI) 0020 add_grammalecte_unittest(grammalecteresultjobtest.cpp) 0021 endif() 0022 add_grammalecte_unittest(grammalecteconfigwidgettest.cpp) 0023 add_grammalecte_unittest(grammalectegenerateconfigoptionjobtest.cpp) 0024 add_grammalecte_unittest(grammalecteconfigdialogtest.cpp) 0025 add_grammalecte_unittest(grammalecteurlrequesterwidgettest.cpp)