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

0001 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0002 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0003 remove_definitions(-DQT_NO_CAST_TO_ASCII)
0004 add_definitions(-DAUTOTEST_BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
0005 
0006 include(ECMMarkAsTest)
0007 include(ECMAddTests)
0008 
0009 find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test Widgets)
0010 
0011 add_subdirectory(helper)
0012 
0013 macro(KWINDOWSYSTEM_UNIT_TESTS)
0014    foreach(_testname ${ARGN})
0015       set(libs KF6::WindowSystem Qt6::Test Qt6::Widgets Qt6::GuiPrivate)
0016 
0017       if (KWINDOWSYSTEM_X11)
0018          list(APPEND libs XCB::XCB XCB::KEYSYMS XCB::ICCCM)
0019       endif()
0020 
0021       ecm_add_test(${_testname}.cpp LINK_LIBRARIES ${libs} NAME_PREFIX "kwindowsystem-" GUI)
0022    endforeach(_testname)
0023 endmacro(KWINDOWSYSTEM_UNIT_TESTS)
0024 macro(KWINDOWSYSTEM_EXECUTABLE_TESTS)
0025    foreach(_testname ${ARGN})
0026       add_executable(${_testname} ${_testname}.cpp)
0027       target_link_libraries(${_testname} KF6::WindowSystem Qt6::Test XCB::XCB Qt6::GuiPrivate)
0028       ecm_mark_as_test(${_testname})
0029    endforeach()
0030 endmacro()
0031 
0032 if(KWINDOWSYSTEM_X11)
0033     include_directories(${CMAKE_SOURCE_DIR}/src/platforms/xcb)
0034     kwindowsystem_unit_tests(
0035         kmanagerselectiontest
0036         kstartupinfo_unittest
0037         kxmessages_unittest
0038         kkeyserver_x11_unittest
0039     )
0040 
0041     kwindowsystem_unit_tests(
0042         kwindoweffectstest
0043         kwindowinfox11test
0044         kwindowsystemx11test
0045         kwindowsystem_threadtest
0046         netrootinfotestwm
0047         netwininfotestclient
0048         netwininfotestwm
0049         compositingenabled_test
0050     )
0051     
0052     kwindowsystem_executable_tests(
0053         fixx11h_test
0054         fixx11h_test2
0055         dontcrashmapviewport
0056     )
0057 endif()
0058 
0059 ecm_add_test(kwindowsystem_platform_wayland_test.cpp LINK_LIBRARIES KF6::WindowSystem Qt6::Test TEST_NAME kwindowsystemplatformwaylandtest NAME_PREFIX "kwindowsystem-" GUI)