4f4f425538
wl_shell_surface has been deprecated for quite a long time. Nowadays most clients use the xdg-shell protocol to create desktop-style user interface elements.
66 lines
2.2 KiB
CMake
66 lines
2.2 KiB
CMake
include(ECMMarkAsTest)
|
|
|
|
# find_package(Qt5Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private)
|
|
include_directories(SYSTEM ${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
|
set(testServer_SRCS
|
|
waylandservertest.cpp
|
|
)
|
|
add_executable(testServer ${testServer_SRCS})
|
|
target_link_libraries(testServer Plasma::KWaylandServer)
|
|
ecm_mark_as_test(testServer)
|
|
|
|
find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG QUIET)
|
|
if (Qt5Widgets_FOUND)
|
|
set(testRenderingServer_SRCS
|
|
renderingservertest.cpp
|
|
)
|
|
add_executable(testRenderingServer ${testRenderingServer_SRCS})
|
|
target_link_libraries(testRenderingServer Plasma::KWaylandServer Qt5::Concurrent Qt5::Widgets)
|
|
ecm_mark_as_test(testRenderingServer)
|
|
endif()
|
|
|
|
add_executable(copyClient copyclient.cpp)
|
|
target_link_libraries(copyClient KF5::WaylandClient)
|
|
ecm_mark_as_test(copyClient)
|
|
|
|
add_executable(pasteClient pasteclient.cpp)
|
|
target_link_libraries(pasteClient Qt5::Concurrent KF5::WaylandClient)
|
|
ecm_mark_as_test(pasteClient)
|
|
|
|
if (HAVE_LINUX_INPUT_H)
|
|
add_executable(touchClientTest touchclienttest.cpp)
|
|
target_link_libraries(touchClientTest KF5::WaylandClient)
|
|
|
|
|
|
add_executable(panelTest paneltest.cpp)
|
|
target_link_libraries(panelTest KF5::WaylandClient)
|
|
ecm_mark_as_test(panelTest)
|
|
|
|
add_executable(subsurface-test subsurfacetest.cpp)
|
|
target_link_libraries(subsurface-test Qt5::Core Qt5::Gui KF5::WaylandClient)
|
|
ecm_mark_as_test(subsurface-test)
|
|
endif()
|
|
|
|
add_executable(shadowTest shadowtest.cpp)
|
|
target_link_libraries(shadowTest KF5::WaylandClient)
|
|
ecm_mark_as_test(shadowTest)
|
|
|
|
|
|
if (Qt5Widgets_FOUND)
|
|
add_executable(dpmsTest dpmstest.cpp)
|
|
target_link_libraries(dpmsTest KF5::WaylandClient Qt5::Widgets)
|
|
ecm_mark_as_test(dpmsTest)
|
|
endif()
|
|
|
|
add_executable(plasmasurface-test plasmasurfacetest.cpp)
|
|
target_link_libraries(plasmasurface-test Qt5::Gui KF5::WaylandClient)
|
|
ecm_mark_as_test(plasmasurface-test)
|
|
|
|
add_executable(xdgforeign-test xdgforeigntest.cpp)
|
|
target_link_libraries(xdgforeign-test Qt5::Gui KF5::WaylandClient)
|
|
ecm_mark_as_test(xdgforeign-test)
|
|
|
|
add_executable(xdg-test xdgtest.cpp)
|
|
target_link_libraries(xdg-test Qt5::Gui KF5::WaylandClient)
|
|
ecm_mark_as_test(xdg-test)
|
|
|