kwin/plugins/platforms/x11/windowed/CMakeLists.txt
2021-01-29 11:34:52 +01:00

21 lines
724 B
CMake

set(X11BACKEND_SOURCES
egl_x11_backend.cpp
logging.cpp
scene_qpainter_x11_backend.cpp
x11windowed_backend.cpp
x11windowed_output.cpp
)
add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES})
set_target_properties(KWinWaylandX11Backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB SceneQPainterBackend SceneOpenGLBackend VsyncSupport X11::X11)
if (X11_Xi_FOUND)
target_link_libraries(KWinWaylandX11Backend X11::Xi)
endif()
install(
TARGETS
KWinWaylandX11Backend
DESTINATION
${KDE_INSTALL_PLUGINDIR}/org.kde.kwin.waylandbackends/
)