Warning, /plasma/kwin/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 if (QT_MAJOR_VERSION EQUAL "5") 0002 find_package(Qt5 REQUIRED COMPONENTS WaylandClient) 0003 endif() 0004 0005 if (XCB_ICCCM_FOUND) 0006 set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp) 0007 add_executable(normalhintsbasesizetest ${normalhintsbasesizetest_SRCS}) 0008 target_link_libraries(normalhintsbasesizetest XCB::XCB XCB::ICCCM KF5::WindowSystem) 0009 endif() 0010 0011 # next target 0012 set(screenedgeshowtest_SRCS screenedgeshowtest.cpp) 0013 add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS}) 0014 target_link_libraries(screenedgeshowtest Qt::Widgets KF5::ConfigCore KF5::WindowSystem KF5::WaylandClient ${XCB_XCB_LIBRARY}) 0015 if (QT_MAJOR_VERSION EQUAL "5") 0016 target_link_libraries(screenedgeshowtest Qt::X11Extras) 0017 else() 0018 target_link_libraries(screenedgeshowtest Qt::GuiPrivate) 0019 endif() 0020 target_include_directories(screenedgeshowtest PRIVATE ${CMAKE_SOURCE_DIR}/src) 0021 0022 add_executable(x11shadowreader x11shadowreader.cpp) 0023 target_link_libraries(x11shadowreader XCB::XCB Qt::Widgets KF5::ConfigCore KF5::WindowSystem) 0024 if (QT_MAJOR_VERSION EQUAL "5") 0025 target_link_libraries(x11shadowreader Qt::X11Extras) 0026 else() 0027 target_link_libraries(x11shadowreader Qt::GuiPrivate) 0028 endif() 0029 target_include_directories(x11shadowreader PRIVATE ${CMAKE_SOURCE_DIR}/src) 0030 0031 add_executable(pointerconstraints pointerconstraintstest.cpp) 0032 add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}") 0033 target_link_libraries(pointerconstraints XCB::XCB Qt::Gui Qt::Quick KF5::WaylandClient) 0034 0035 add_executable(pointergestures pointergesturestest.cpp) 0036 add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}") 0037 target_link_libraries(pointergestures Qt::Gui Qt::Quick KF5::WaylandClient) 0038 0039 add_executable(cursorhotspottest cursorhotspottest.cpp) 0040 target_link_libraries(cursorhotspottest Qt::Widgets) 0041 0042 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 0043 0044 if (QT_MAJOR_VERSION EQUAL "5") 0045 add_executable(xdgactivationtest-qt5 xdgactivationtest-qt5.cpp) 0046 target_link_libraries(xdgactivationtest-qt5 Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client) 0047 ecm_add_qtwayland_client_protocol(xdgactivationtest-qt5 0048 PROTOCOL ${WaylandProtocols_DATADIR}/staging/xdg-activation/xdg-activation-v1.xml 0049 BASENAME xdg-activation-v1 0050 ) 0051 0052 add_executable(lockscreenoverlaytest lockscreenoverlaytest.cpp) 0053 target_link_libraries(lockscreenoverlaytest Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client KF5::WindowSystem) 0054 ecm_add_qtwayland_client_protocol(lockscreenoverlaytest 0055 PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-lockscreen-overlay-v1.xml 0056 BASENAME kde-lockscreen-overlay-v1 0057 ) 0058 endif() 0059 0060 if (TARGET Qt6::Gui) 0061 add_executable(xdgactivationtest-qt6 xdgactivationtest-qt6.cpp) 0062 target_link_libraries(xdgactivationtest-qt6 Qt6::Widgets) 0063 endif()