Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/CMakeLists.txt
Show All 13 Lines | 4 | set(QPA_SOURCES | |||
---|---|---|---|---|---|
14 | window.cpp | 14 | window.cpp | ||
15 | ) | 15 | ) | ||
16 | 16 | | |||
17 | include(ECMQtDeclareLoggingCategory) | 17 | include(ECMQtDeclareLoggingCategory) | ||
18 | ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical) | 18 | ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical) | ||
19 | 19 | | |||
20 | add_library(KWinQpaPlugin MODULE ${QPA_SOURCES}) | 20 | add_library(KWinQpaPlugin MODULE ${QPA_SOURCES}) | ||
21 | 21 | | |||
22 | if(Qt5Core_VERSION VERSION_LESS "5.8.0") | | |||
23 | add_definitions(-DQ_FONTCONFIGDATABASE) | | |||
24 | set(QT5PLATFORMSUPPORT_LIBS Qt5PlatformSupport::Qt5PlatformSupport) | | |||
25 | else() | | |||
26 | set(QT5PLATFORMSUPPORT_LIBS | 22 | set(QT5PLATFORMSUPPORT_LIBS | ||
27 | Qt5FontDatabaseSupport::Qt5FontDatabaseSupport | 23 | Qt5FontDatabaseSupport::Qt5FontDatabaseSupport | ||
28 | Qt5ThemeSupport::Qt5ThemeSupport | 24 | Qt5ThemeSupport::Qt5ThemeSupport | ||
29 | Qt5EventDispatcherSupport::Qt5EventDispatcherSupport | 25 | Qt5EventDispatcherSupport::Qt5EventDispatcherSupport | ||
30 | ) | 26 | ) | ||
31 | endif() | | |||
32 | 27 | | |||
33 | target_link_libraries(KWinQpaPlugin | 28 | target_link_libraries(KWinQpaPlugin | ||
34 | kwin | 29 | kwin | ||
35 | KF5::WaylandClient | 30 | KF5::WaylandClient | ||
36 | ${QT5PLATFORMSUPPORT_LIBS} | 31 | ${QT5PLATFORMSUPPORT_LIBS} | ||
37 | ${FONTCONFIG_LIBRARIES} | 32 | ${FONTCONFIG_LIBRARIES} | ||
38 | ${FREETYPE_LIBRARIES} | 33 | ${FREETYPE_LIBRARIES} | ||
39 | ) | 34 | ) | ||
Show All 11 Lines |