2015-05-05 15:58:09 +00:00
|
|
|
set(WAYLAND_BACKEND_SOURCES
|
|
|
|
logging.cpp
|
|
|
|
scene_qpainter_wayland_backend.cpp
|
|
|
|
screens_wayland.cpp
|
|
|
|
wayland_backend.cpp
|
|
|
|
)
|
2015-08-11 08:27:18 +00:00
|
|
|
if(Wayland_Egl_FOUND)
|
2015-05-05 15:58:09 +00:00
|
|
|
set(WAYLAND_BACKEND_SOURCES ${WAYLAND_BACKEND_SOURCES} egl_wayland_backend.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES})
|
|
|
|
target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient)
|
|
|
|
|
2015-08-11 08:27:18 +00:00
|
|
|
if(Wayland_Egl_FOUND)
|
2015-05-05 15:58:09 +00:00
|
|
|
target_link_libraries(KWinWaylandWaylandBackend Wayland::Egl)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinWaylandWaylandBackend
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
|
|
)
|