Warning, /plasma/plasma-workspace/shell/autotests/mockserver/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 project(waylandmockservertest) 0002 0003 find_package(WaylandProtocols 1.24) 0004 set_package_properties(WaylandProtocols PROPERTIES TYPE REQUIRED) 0005 find_package(Threads) 0006 0007 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP" ) 0008 0009 set(SharedClientTest_LIB_SRCS 0010 corecompositor.cpp corecompositor.h 0011 coreprotocol.cpp coreprotocol.h 0012 datadevice.cpp datadevice.h 0013 mockcompositor.cpp mockcompositor.h 0014 xdgoutputv1.cpp xdgoutputv1.h 0015 xdgshell.cpp xdgshell.h 0016 outputorder.cpp outputorder.h 0017 layershell.cpp layershell.h 0018 ) 0019 0020 add_library(SharedClientTest OBJECT) 0021 qt6_generate_wayland_protocol_client_sources(SharedClientTest FILES 0022 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-primary-output-v1.xml 0023 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-order-v1.xml 0024 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-screen-edge-v1.xml 0025 ) 0026 qt6_generate_wayland_protocol_server_sources(SharedClientTest FILES 0027 ${Wayland_DATADIR}/wayland.xml 0028 ${WaylandProtocols_DATADIR}/unstable/xdg-output/xdg-output-unstable-v1.xml 0029 ${WaylandProtocols_DATADIR}/stable/xdg-shell/xdg-shell.xml 0030 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-primary-output-v1.xml 0031 ${PLASMA_WAYLAND_PROTOCOLS_DIR}/kde-output-order-v1.xml 0032 ${CMAKE_CURRENT_SOURCE_DIR}/wlr-layer-shell-unstable-v1.xml 0033 ) 0034 0035 0036 target_sources(SharedClientTest PRIVATE ${SharedClientTest_LIB_SRCS}) 0037 0038 target_link_libraries(SharedClientTest 0039 PUBLIC 0040 Qt::Test 0041 Qt::Gui 0042 Qt::WaylandClientPrivate 0043 Wayland::Server 0044 Threads::Threads 0045 ) 0046 0047 target_include_directories(SharedClientTest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})