CMakeLists.txt 1.11 KB
Newer Older
1 2 3 4 5 6
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})

set(QPA_SOURCES
    abstractplatformcontext.cpp
    backingstore.cpp
7
    eglhelpers.cpp
8 9 10
    integration.cpp
    main.cpp
    nativeinterface.cpp
11
    offscreensurface.cpp
12
    platformcursor.cpp
13 14 15 16 17
    screen.cpp
    sharingplatformcontext.cpp
    window.cpp
)

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

21
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
22
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
23

24
set(QT5PLATFORMSUPPORT_LIBS
25 26 27
    Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
    Qt5ThemeSupport::Qt5ThemeSupport
    Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
28 29
)

30
target_link_libraries(KWinQpaPlugin
31
    ${FREETYPE_LIBRARIES}
32
    ${QT5PLATFORMSUPPORT_LIBS}
33
    Fontconfig::Fontconfig
34 35
    KF5::WaylandClient
    kwin
36 37 38 39 40 41 42 43
)

install(
    TARGETS
        KWinQpaPlugin
    DESTINATION
        ${PLUGIN_INSTALL_DIR}/platforms/
)