Warning, /libraries/ktextaddons/textautocorrection/core/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: none
0003 add_definitions( -DAUTOCORRECTION_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" )
0004 
0005 macro(add_autocorrect_unittest _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   set_tests_properties(${_name} PROPERTIES ENVIRONMENT "QT_HASH_SEED=0")
0011   ecm_mark_as_test(autocorrection-${_name})
0012   target_link_libraries(${_name}  Qt::Test KF${KF_MAJOR_VERSION}::TextAutoCorrectionCore)
0013 endmacro()
0014 
0015 add_autocorrect_unittest(autocorrectiontest.cpp)
0016 add_autocorrect_unittest(importkmailautocorrectiontest.cpp)
0017 add_autocorrect_unittest(autocorrectionsettingstest.cpp)
0018 add_autocorrect_unittest(autocorrectionutilstest.cpp)
0019 add_autocorrect_unittest(importexportautocorrectionlibreofficetest.cpp)