Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/CMakeLists.txt
Show All 17 Lines | |||||
18 | qt5_add_dbus_interface(kcm_fonts_PART_SRCS ${klauncher_xml} klauncher_iface) | 18 | qt5_add_dbus_interface(kcm_fonts_PART_SRCS ${klauncher_xml} klauncher_iface) | ||
19 | 19 | | |||
20 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | 20 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | ||
21 | 21 | | |||
22 | 22 | | |||
23 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES}) | 23 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES}) | ||
24 | 24 | | |||
25 | if(X11_FOUND) | 25 | if(X11_FOUND) | ||
26 | target_link_libraries(kcm_fonts Qt5::X11Extras) | 26 | target_link_libraries(kcm_fonts | ||
27 | Qt5::X11Extras | ||||
28 | KF5::I18n | ||||
29 | KF5::Plasma | ||||
30 | KF5::PlasmaQuick | ||||
31 | KF5::Declarative | ||||
32 | KF5::QuickAddons) | ||||
27 | if(FONTCONFIG_FOUND) | 33 | if(FONTCONFIG_FOUND) | ||
28 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | 34 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | ||
29 | endif() | 35 | endif() | ||
30 | 36 | | |||
31 | target_link_libraries(kcm_fonts ${X11_LIBRARIES}) | 37 | target_link_libraries(kcm_fonts ${X11_LIBRARIES}) | ||
32 | endif() | 38 | endif() | ||
33 | 39 | | |||
34 | install(TARGETS kcm_fonts DESTINATION ${PLUGIN_INSTALL_DIR} ) | 40 | kcoreaddons_desktop_to_json(kcm_fonts "kcm_fonts.desktop") | ||
35 | | ||||
36 | 41 | | |||
37 | ########### install files ############### | 42 | ########### install files ############### | ||
38 | 43 | install(TARGETS kcm_fonts DESTINATION ${PLUGIN_INSTALL_DIR}/kcms) | |||
39 | install( FILES fonts.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 44 | install(FILES kcm_fonts.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
45 | kpackage_install_package(package kcm_fonts kcms) |