kwin/plugins/qpa/CMakeLists.txt
Vlad Zahorodnii 9b89a3d967 qpa: Merge OpenGL platform context classes
This makes our QPlatformOpenGLContext private subclass simpler.

As a slightly unrelated change, this patch also fixes a bug where our
platform opengl context may return a wrong surface format if surfaceless
contexts are unsupported.
2020-10-13 05:32:48 +00:00

40 lines
1 KiB
CMake

include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
set(QPA_SOURCES
backingstore.cpp
eglhelpers.cpp
eglplatformcontext.cpp
integration.cpp
main.cpp
offscreensurface.cpp
platformcursor.cpp
screen.cpp
window.cpp
)
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
set(QT5PLATFORMSUPPORT_LIBS
Qt5::FontDatabaseSupportPrivate
Qt5::ThemeSupportPrivate
Qt5::EventDispatcherSupportPrivate
)
target_link_libraries(KWinQpaPlugin
${QT5PLATFORMSUPPORT_LIBS}
${FREETYPE_LIBRARIES} # Must be after QT5PLATFORMSUPPORT_LIBS
Fontconfig::Fontconfig
kwin
)
install(
TARGETS
KWinQpaPlugin
DESTINATION
${PLUGIN_INSTALL_DIR}/platforms/
)