c8ede9a5ff
Summary: This brings KWin a step closer to be run from build dir without having to install at all. The integration tests are adjusted so that the virtual platform is still found which makes the code be closer to what is used in normal kwin_wayland. Test Plan: ctest passes, manually verified correct plugin is loaded Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17388
25 lines
852 B
CMake
25 lines
852 B
CMake
set(WAYLAND_BACKEND_SOURCES
|
|
logging.cpp
|
|
scene_qpainter_wayland_backend.cpp
|
|
wayland_backend.cpp
|
|
)
|
|
|
|
if(HAVE_WAYLAND_EGL)
|
|
set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES})
|
|
endif()
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
|
add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES})
|
|
set_target_properties(KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
|
target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend)
|
|
|
|
if(HAVE_WAYLAND_EGL)
|
|
target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS
|
|
KWinWaylandWaylandBackend
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
|
|
)
|