CMakeLists.txt 901 Bytes
Newer Older
1 2 3 4 5
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})

set(QPA_SOURCES
    backingstore.cpp
6
    eglhelpers.cpp
7
    eglplatformcontext.cpp
8 9
    integration.cpp
    main.cpp
10
    offscreensurface.cpp
11
    platformcursor.cpp
12 13 14 15
    screen.cpp
    window.cpp
)

16 17 18
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)

David Edmundson's avatar
David Edmundson committed
19 20
add_library(KWinQpaPlugin OBJECT ${QPA_SOURCES})
target_compile_definitions(KWinQpaPlugin PRIVATE QT_STATICPLUGIN)
21

22
set(QT5PLATFORMSUPPORT_LIBS
23 24 25
    Qt5::FontDatabaseSupportPrivate
    Qt5::ThemeSupportPrivate
    Qt5::EventDispatcherSupportPrivate
26 27
)

28
target_link_libraries(KWinQpaPlugin
29
    ${QT5PLATFORMSUPPORT_LIBS}
30
    ${FREETYPE_LIBRARIES} # Must be after QT5PLATFORMSUPPORT_LIBS
31
    Fontconfig::Fontconfig
32
    kwin
33
)