Warning, /plasma/kwayland/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(ECMMarkAsTest) 0002 0003 # The server part of this repo has been moved to Plasma kwayland-server since 5.73, 0004 # all targets that link to KF5::WaylandServer can't be built 0005 if(EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.74.0) 0006 # find_package(Qt${QT_MAJOR_VERSION}Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private) 0007 include_directories(SYSTEM ${Qt${QT_MAJOR_VERSION}Core_PRIVATE_INCLUDE_DIRS}) 0008 set(testServer_SRCS 0009 waylandservertest.cpp 0010 ) 0011 add_executable(testServer ${testServer_SRCS}) 0012 target_link_libraries(testServer KF5::WaylandServer) 0013 ecm_mark_as_test(testServer) 0014 0015 find_package(Qt${QT_MAJOR_VERSION}Widgets ${QT_MIN_VERSION} CONFIG QUIET) 0016 if (TARGET Qt${QT_MAJOR_VERSION}::Widgets) 0017 set(testRenderingServer_SRCS 0018 renderingservertest.cpp 0019 ) 0020 add_executable(testRenderingServer ${testRenderingServer_SRCS}) 0021 target_link_libraries(testRenderingServer KF5::WaylandServer Qt${QT_MAJOR_VERSION}::Concurrent Qt${QT_MAJOR_VERSION}::Widgets) 0022 ecm_mark_as_test(testRenderingServer) 0023 endif() 0024 endif() 0025 0026 add_executable(copyClient copyclient.cpp) 0027 target_link_libraries(copyClient KF5::WaylandClient) 0028 ecm_mark_as_test(copyClient) 0029 0030 add_executable(pasteClient pasteclient.cpp) 0031 target_link_libraries(pasteClient Qt${QT_MAJOR_VERSION}::Concurrent KF5::WaylandClient) 0032 ecm_mark_as_test(pasteClient) 0033 0034 add_executable(touchClientTest touchclienttest.cpp) 0035 target_link_libraries(touchClientTest KF5::WaylandClient) 0036 0037 add_executable(panelTest paneltest.cpp) 0038 target_link_libraries(panelTest KF5::WaylandClient) 0039 ecm_mark_as_test(panelTest) 0040 0041 add_executable(qtwayland-integration-test qtwaylandintegrationtest.cpp) 0042 target_link_libraries(qtwayland-integration-test Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui KF5::WaylandClient) 0043 ecm_mark_as_test(qtwayland-integration-test) 0044 0045 add_executable(subsurface-test subsurfacetest.cpp) 0046 target_link_libraries(subsurface-test Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Gui KF5::WaylandClient) 0047 ecm_mark_as_test(subsurface-test) 0048 0049 add_executable(shadowTest shadowtest.cpp) 0050 target_link_libraries(shadowTest KF5::WaylandClient) 0051 ecm_mark_as_test(shadowTest) 0052 0053 0054 if (TARGET Qt${QT_MAJOR_VERSION}::Widgets) 0055 add_executable(dpmsTest dpmstest.cpp) 0056 target_link_libraries(dpmsTest KF5::WaylandClient Qt${QT_MAJOR_VERSION}::Widgets) 0057 ecm_mark_as_test(dpmsTest) 0058 endif() 0059 0060 add_executable(plasmasurface-test plasmasurfacetest.cpp) 0061 target_link_libraries(plasmasurface-test Qt${QT_MAJOR_VERSION}::Gui KF5::WaylandClient) 0062 ecm_mark_as_test(plasmasurface-test) 0063 0064 add_executable(xdgforeign-test xdgforeigntest.cpp) 0065 target_link_libraries(xdgforeign-test Qt${QT_MAJOR_VERSION}::Gui KF5::WaylandClient) 0066 ecm_mark_as_test(xdgforeign-test) 0067 0068 add_executable(xdg-test xdgtest.cpp) 0069 target_link_libraries(xdg-test Qt${QT_MAJOR_VERSION}::Gui KF5::WaylandClient) 0070 ecm_mark_as_test(xdg-test) 0071