Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/CMakeLists.txt
Show All 13 Lines | |||||
14 | 14 | | |||
15 | if(X11_FOUND) | 15 | if(X11_FOUND) | ||
16 | set(kcm_fonts_PART_SRCS ${kcm_fonts_PART_SRCS} ${libkxftconfig_SRCS}) | 16 | set(kcm_fonts_PART_SRCS ${kcm_fonts_PART_SRCS} ${libkxftconfig_SRCS}) | ||
17 | endif() | 17 | endif() | ||
18 | 18 | | |||
19 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 19 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
20 | qt5_add_dbus_interface(kcm_fonts_PART_SRCS ${klauncher_xml} klauncher_iface) | 20 | qt5_add_dbus_interface(kcm_fonts_PART_SRCS ${klauncher_xml} klauncher_iface) | ||
21 | 21 | | |||
22 | kconfig_add_kcfg_files(kcm_fonts_PART_SRCS fontssettings.kcfgc GENERATE_MOC) | ||||
22 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | 23 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | ||
23 | 24 | | |||
24 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES} kfontinst) | 25 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES} kfontinst) | ||
25 | 26 | | |||
26 | if(X11_FOUND) | 27 | if(X11_FOUND) | ||
27 | target_link_libraries(kcm_fonts | 28 | target_link_libraries(kcm_fonts | ||
28 | Qt5::X11Extras | 29 | Qt5::X11Extras | ||
29 | KF5::I18n | 30 | KF5::I18n | ||
30 | KF5::Plasma | 31 | KF5::Plasma | ||
31 | KF5::PlasmaQuick | 32 | KF5::PlasmaQuick | ||
32 | KF5::Declarative | 33 | KF5::Declarative | ||
33 | KF5::QuickAddons) | 34 | KF5::QuickAddons) | ||
34 | if(FONTCONFIG_FOUND) | 35 | if(FONTCONFIG_FOUND) | ||
35 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | 36 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | ||
36 | endif() | 37 | endif() | ||
37 | 38 | | |||
38 | target_link_libraries(kcm_fonts ${X11_LIBRARIES} ${X11_Xft_LIB}) | 39 | target_link_libraries(kcm_fonts ${X11_LIBRARIES} ${X11_Xft_LIB}) | ||
39 | endif() | 40 | endif() | ||
40 | 41 | | |||
41 | kcoreaddons_desktop_to_json(kcm_fonts "kcm_fonts.desktop") | 42 | kcoreaddons_desktop_to_json(kcm_fonts "kcm_fonts.desktop") | ||
42 | 43 | | |||
43 | ########### install files ############### | 44 | ########### install files ############### | ||
45 | install(FILES fontssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||||
44 | install(TARGETS kcm_fonts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 46 | install(TARGETS kcm_fonts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
45 | install(FILES kcm_fonts.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 47 | install(FILES kcm_fonts.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
46 | kpackage_install_package(package kcm_fonts kcms) | 48 | kpackage_install_package(package kcm_fonts kcms) |