2016-04-08 07:30:22 +00:00
|
|
|
set(X11BACKEND_SOURCES
|
|
|
|
egl_x11_backend.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
logging.cpp
|
2016-04-08 07:30:22 +00:00
|
|
|
scene_qpainter_x11_backend.cpp
|
|
|
|
x11windowed_backend.cpp
|
2019-06-13 09:27:01 +00:00
|
|
|
x11windowed_output.cpp
|
2016-04-08 07:30:22 +00:00
|
|
|
)
|
|
|
|
|
2017-09-08 20:30:18 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
2016-04-08 07:30:22 +00:00
|
|
|
add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES})
|
2018-12-06 17:38:36 +00:00
|
|
|
set_target_properties(KWinWaylandX11Backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
2017-09-08 20:30:18 +00:00
|
|
|
target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB SceneQPainterBackend SceneOpenGLBackend)
|
2019-09-17 09:15:35 +00:00
|
|
|
if (X11_Xinput_FOUND)
|
2018-12-05 17:46:35 +00:00
|
|
|
target_link_libraries(KWinWaylandX11Backend ${X11_Xinput_LIB})
|
|
|
|
endif()
|
2016-04-08 07:30:22 +00:00
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinWaylandX11Backend
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
|
|
)
|