Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_fonts\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_fonts\") | ||
3 | 3 | | |||
4 | if(FONTCONFIG_FOUND) | 4 | if(FONTCONFIG_FOUND) | ||
5 | include_directories(${FONTCONFIG_INCLUDE_DIR}) | 5 | include_directories(${FONTCONFIG_INCLUDE_DIR}) | ||
6 | endif() | 6 | endif() | ||
7 | include_directories(${FREETYPE_INCLUDE_DIRS}) | 7 | include_directories(${FREETYPE_INCLUDE_DIRS}) | ||
8 | 8 | | |||
9 | ########### next target ############### | 9 | ########### next target ############### | ||
10 | 10 | | |||
11 | set(kcm_fonts_PART_SRCS ../krdb/krdb.cpp fonts.cpp) | 11 | include_directories(../kfontinst/lib) | ||
12 | | ||||
13 | set(kcm_fonts_PART_SRCS ../krdb/krdb.cpp previewrenderengine.cpp previewimageprovider.cpp fonts.cpp ../kfontinst/lib/FcEngine.cpp) | ||||
12 | 14 | | |||
13 | if(X11_FOUND) | 15 | if(X11_FOUND) | ||
14 | set(kcm_fonts_PART_SRCS ${kcm_fonts_PART_SRCS} ${libkxftconfig_SRCS}) | 16 | set(kcm_fonts_PART_SRCS ${kcm_fonts_PART_SRCS} ${libkxftconfig_SRCS}) | ||
15 | endif() | 17 | endif() | ||
16 | 18 | | |||
17 | 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) | ||
18 | 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) | ||
19 | 21 | | |||
20 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | 22 | add_library(kcm_fonts MODULE ${kcm_fonts_PART_SRCS}) | ||
21 | 23 | | |||
22 | 24 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES} kfontinst) | |||
23 | target_link_libraries(kcm_fonts Qt5::DBus Qt5::Xml KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${FREETYPE_LIBRARIES}) | | |||
24 | 25 | | |||
25 | if(X11_FOUND) | 26 | if(X11_FOUND) | ||
26 | target_link_libraries(kcm_fonts | 27 | target_link_libraries(kcm_fonts | ||
27 | Qt5::X11Extras | 28 | Qt5::X11Extras | ||
28 | KF5::I18n | 29 | KF5::I18n | ||
29 | KF5::Plasma | 30 | KF5::Plasma | ||
30 | KF5::PlasmaQuick | 31 | KF5::PlasmaQuick | ||
31 | KF5::Declarative | 32 | KF5::Declarative | ||
32 | KF5::QuickAddons) | 33 | KF5::QuickAddons) | ||
33 | if(FONTCONFIG_FOUND) | 34 | if(FONTCONFIG_FOUND) | ||
34 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | 35 | target_link_libraries(kcm_fonts ${FONTCONFIG_LIBRARIES}) | ||
35 | endif() | 36 | endif() | ||
36 | 37 | | |||
37 | target_link_libraries(kcm_fonts ${X11_LIBRARIES}) | 38 | target_link_libraries(kcm_fonts ${X11_LIBRARIES} ${X11_Xft_LIB}) | ||
38 | endif() | 39 | endif() | ||
39 | 40 | | |||
40 | kcoreaddons_desktop_to_json(kcm_fonts "kcm_fonts.desktop") | 41 | kcoreaddons_desktop_to_json(kcm_fonts "kcm_fonts.desktop") | ||
41 | 42 | | |||
42 | ########### install files ############### | 43 | ########### install files ############### | ||
43 | install(TARGETS kcm_fonts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 44 | install(TARGETS kcm_fonts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
44 | install(FILES kcm_fonts.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 45 | install(FILES kcm_fonts.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
45 | kpackage_install_package(package kcm_fonts kcms) | 46 | kpackage_install_package(package kcm_fonts kcms) |