99947c8bd8
This makes it easier to build against both Qt5 and Qt6 GIT_SILENT
31 lines
860 B
CMake
31 lines
860 B
CMake
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 OBJECT ${QPA_SOURCES})
|
|
target_compile_definitions(KWinQpaPlugin PRIVATE QT_STATICPLUGIN)
|
|
|
|
target_include_directories(KWinQpaPlugin PRIVATE
|
|
${Qt5Core_PRIVATE_INCLUDE_DIRS}
|
|
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(KWinQpaPlugin PRIVATE
|
|
Qt::FontDatabaseSupportPrivate
|
|
Qt::ThemeSupportPrivate
|
|
Qt::EventDispatcherSupportPrivate
|
|
Freetype::Freetype # Must be after Qt5 platform support libs
|
|
Fontconfig::Fontconfig
|
|
kwin
|
|
)
|