Warning, /frameworks/kcompletion/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0002 remove_definitions(-DQT_NO_CAST_TO_ASCII)
0003 
0004 include(ECMMarkAsTest)
0005 
0006 find_package(Qt${QT_MAJOR_VERSION}Test ${REQUIRED_QT_VERSION} CONFIG QUIET)
0007 
0008 if(NOT Qt${QT_MAJOR_VERSION}Test_FOUND)
0009     message(STATUS "Qt${QT_MAJOR_VERSION}Test not found, manual tests will not be built.")
0010     return()
0011 endif()
0012 
0013 macro(kcompletion_executable_tests)
0014   foreach(_testname ${ARGN})
0015     add_executable(${_testname} ${_testname}.cpp ${_testname}.h)
0016     target_link_libraries(${_testname} Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Widgets KF5::Completion KF5::ConfigCore)
0017     ecm_mark_as_test(${_testname})
0018   endforeach(_testname)
0019 endmacro()
0020 
0021 kcompletion_executable_tests(
0022    kcomboboxtest
0023    kcompletionuitest
0024    klineedittest
0025 )