Warning, /frameworks/kwindowsystem/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} ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test Widgets)
0007 
0008 macro(kwindowsystem_executable_tests)
0009   foreach(_testname ${ARGN})
0010     add_executable(${_testname} ${_testname}.cpp)
0011     target_link_libraries(${_testname} Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Widgets KF5::WindowSystem)
0012     ecm_mark_as_test(${_testname})
0013   endforeach(_testname)
0014 endmacro()
0015 
0016 kwindowsystem_executable_tests(
0017   blurbehindtest
0018   backgroundcontrasttest
0019 )
0020 
0021 if(KWINDOWSYSTEM_HAVE_X11)
0022     kwindowsystem_executable_tests(
0023       icontest
0024       createpixmapfromhandletest
0025       setmainwindowtest
0026     )
0027     if (TARGET Qt5::X11Extras)
0028         target_link_libraries(icontest Qt5::X11Extras)
0029     elseif (TARGET Qt6::Gui)
0030         target_link_libraries(icontest Qt6::GuiPrivate)
0031     endif()
0032 endif()