2015-05-05 15:58:09 +00:00
|
|
|
set(WAYLAND_BACKEND_SOURCES
|
|
|
|
logging.cpp
|
|
|
|
scene_qpainter_wayland_backend.cpp
|
|
|
|
wayland_backend.cpp
|
|
|
|
)
|
|
|
|
|
2015-11-30 07:34:52 +00:00
|
|
|
if(HAVE_WAYLAND_EGL)
|
|
|
|
set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES})
|
|
|
|
endif()
|
|
|
|
|
2017-09-08 20:30:18 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
2015-05-05 15:58:09 +00:00
|
|
|
add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES})
|
2017-08-11 19:40:49 +00:00
|
|
|
target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend)
|
2015-11-30 07:34:52 +00:00
|
|
|
|
|
|
|
if(HAVE_WAYLAND_EGL)
|
2017-09-08 20:30:18 +00:00
|
|
|
target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl)
|
2015-11-30 07:34:52 +00:00
|
|
|
endif()
|
2015-05-05 15:58:09 +00:00
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinWaylandWaylandBackend
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
|
|
)
|