kwin/backends/drm/CMakeLists.txt
Sebastian Kügler 629cc70123 Split drm_backend.{h,cpp} into separate files
Summary:
This changes splits up the monster file containing different types used
in the DRM backend into separate files per class:

- drm_backend.{h,cpp}
- drm_buffer.{h,cpp}
- drm_inputeventfilter.{h,cpp}
- drm_output.{h,cpp}
- drm_pointer.h

No actual code changes other than build fixes.

Clean up headers in the split files.

Test Plan: Builds with GBM enabled

Reviewers: graesslin

Reviewed By: graesslin

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1168
2016-03-21 15:11:26 +01:00

27 lines
587 B
CMake

set(DRM_SOURCES
drm_backend.cpp
drm_output.cpp
drm_buffer.cpp
drm_inputeventfilter.cpp
logging.cpp
scene_qpainter_drm_backend.cpp
screens_drm.cpp
)
if(HAVE_GBM)
set(DRM_SOURCES ${DRM_SOURCES} egl_gbm_backend.cpp)
endif()
add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES})
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm)
if(HAVE_GBM)
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
endif()
install(
TARGETS
KWinWaylandDrmBackend
DESTINATION
${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/
)