2022-05-02 19:39:43 +00:00
|
|
|
if (QT_MAJOR_VERSION EQUAL "5")
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS WaylandClient)
|
|
|
|
endif()
|
2022-04-27 16:39:08 +00:00
|
|
|
|
2014-01-30 14:28:12 +00:00
|
|
|
if (XCB_ICCCM_FOUND)
|
|
|
|
set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)
|
|
|
|
add_executable(normalhintsbasesizetest ${normalhintsbasesizetest_SRCS})
|
2014-03-18 16:53:22 +00:00
|
|
|
target_link_libraries(normalhintsbasesizetest XCB::XCB XCB::ICCCM KF5::WindowSystem)
|
2014-01-30 14:28:12 +00:00
|
|
|
endif()
|
2014-02-20 11:39:23 +00:00
|
|
|
|
|
|
|
# next target
|
|
|
|
set(screenedgeshowtest_SRCS screenedgeshowtest.cpp)
|
|
|
|
add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS})
|
2022-03-09 16:25:44 +00:00
|
|
|
target_link_libraries(screenedgeshowtest Qt::Widgets KF5::ConfigCore KF5::WindowSystem KF5::WaylandClient ${XCB_XCB_LIBRARY})
|
|
|
|
if (QT_MAJOR_VERSION EQUAL "5")
|
|
|
|
target_link_libraries(screenedgeshowtest Qt::X11Extras)
|
|
|
|
else()
|
|
|
|
target_link_libraries(screenedgeshowtest Qt::GuiPrivate)
|
|
|
|
endif()
|
2021-02-09 19:31:40 +00:00
|
|
|
target_include_directories(screenedgeshowtest PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
2014-08-21 10:57:50 +00:00
|
|
|
|
2016-07-06 11:32:38 +00:00
|
|
|
add_executable(x11shadowreader x11shadowreader.cpp)
|
2022-03-09 16:25:44 +00:00
|
|
|
target_link_libraries(x11shadowreader XCB::XCB Qt::Widgets KF5::ConfigCore KF5::WindowSystem)
|
|
|
|
if (QT_MAJOR_VERSION EQUAL "5")
|
|
|
|
target_link_libraries(x11shadowreader Qt::X11Extras)
|
|
|
|
else()
|
|
|
|
target_link_libraries(x11shadowreader Qt::GuiPrivate)
|
|
|
|
endif()
|
2021-02-09 19:31:40 +00:00
|
|
|
target_include_directories(x11shadowreader PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
2016-10-27 07:10:08 +00:00
|
|
|
|
2018-06-09 13:19:50 +00:00
|
|
|
add_executable(pointerconstraints pointerconstraintstest.cpp)
|
|
|
|
add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
2021-01-30 16:18:21 +00:00
|
|
|
target_link_libraries(pointerconstraints XCB::XCB Qt::Gui Qt::Quick KF5::WaylandClient)
|
2018-06-09 13:19:50 +00:00
|
|
|
|
2016-10-27 07:10:08 +00:00
|
|
|
add_executable(pointergestures pointergesturestest.cpp)
|
|
|
|
add_definitions(-DDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
2021-01-30 16:18:21 +00:00
|
|
|
target_link_libraries(pointergestures Qt::Gui Qt::Quick KF5::WaylandClient)
|
2017-11-05 16:09:49 +00:00
|
|
|
|
|
|
|
add_executable(cursorhotspottest cursorhotspottest.cpp)
|
2021-01-30 16:18:21 +00:00
|
|
|
target_link_libraries(cursorhotspottest Qt::Widgets)
|
2017-11-06 16:00:15 +00:00
|
|
|
|
2017-11-09 17:03:15 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2022-04-27 16:39:08 +00:00
|
|
|
|
|
|
|
if (QT_MAJOR_VERSION EQUAL "5")
|
2022-05-02 19:39:43 +00:00
|
|
|
add_executable(xdgactivationtest-qt5 xdgactivationtest-qt5.cpp)
|
|
|
|
target_link_libraries(xdgactivationtest-qt5 Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client)
|
2022-04-27 16:39:08 +00:00
|
|
|
ecm_add_qtwayland_client_protocol(xdgactivationtest-qt5
|
|
|
|
PROTOCOL ${WaylandProtocols_DATADIR}/staging/xdg-activation/xdg-activation-v1.xml
|
|
|
|
BASENAME xdg-activation-v1
|
|
|
|
)
|
2022-05-12 16:04:12 +00:00
|
|
|
|
|
|
|
add_executable(lockscreenoverlaytest lockscreenoverlaytest.cpp)
|
|
|
|
target_link_libraries(lockscreenoverlaytest Qt::Widgets Qt::WaylandClient Qt::WaylandClientPrivate Wayland::Client KF5::WindowSystem)
|
|
|
|
ecm_add_qtwayland_client_protocol(lockscreenoverlaytest
|
|
|
|
PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-lockscreen-overlay-v1.xml
|
|
|
|
BASENAME kde-lockscreen-overlay-v1
|
|
|
|
)
|
2022-04-27 16:39:08 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (TARGET Qt6::Gui)
|
|
|
|
add_executable(xdgactivationtest-qt6 xdgactivationtest-qt6.cpp)
|
|
|
|
target_link_libraries(xdgactivationtest-qt6 Qt6::Widgets)
|
|
|
|
endif()
|