kwin/backends/x11/CMakeLists.txt
Martin Gräßlin 2220ae44c4 Create a plugin for each of the wayland backends
Each of the backends becomes a plugin. This allows kwin_wayland to load
the requested plugin and kwin itself doesn't need to link all the
libraries needed. E.g. libdrm is no longer linked if running kwin_x11.
Also this allows to create backends for the non-standard EGL platforms
(examples could be raspberrypi or Android devices).
2015-05-06 10:31:39 +02:00

19 lines
461 B
CMake

set(X11BACKEND_SOURCES
logging.cpp
scene_qpainter_x11_backend.cpp
screens_x11windowed.cpp
x11windowed_backend.cpp
)
add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES})
target_link_libraries(KWinWaylandX11Backend kwin)
if(X11_XCB_FOUND)
target_link_libraries(KWinWaylandX11Backend X11::XCB)
endif()
install(
TARGETS
KWinWaylandX11Backend
DESTINATION
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
)