4 # disable policykit usage for now...
5 if (KFI_USE_POLICY_KIT)
7 pkg_check_modules(POLKIT polkit>=0.7)
10 pkg_check_modules(DBUS dbus-1>=1.1.20)
14 pkg_check_modules(POLKITDBUS polkit-dbus>=0.7)
18 set(KFI_POLKIT_INCLUDES ${POLKIT_INCLUDE_DIRS} ${POLKITDBUS_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS} )
19 set(KFI_POLKIT_LIBS -lQtDBus ${POLKIT_LDFLAGS} ${POLKITDBUS_LDFLAGS} ${DBUS_LDFLAGS} )
20 set(kfi_polkit_auth_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/kcmfontinst/PolicyKitAuthenticator.cpp)
22 else (POLKITDBUS_FOUND)
24 endif (POLKITDBUS_FOUND)
25 else (KFI_USE_POLICY_KIT)
27 endif (KFI_USE_POLICY_KIT)
29 configure_file(config-fontinst.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-fontinst.h)
32 ${FREETYPE_INCLUDE_DIR}
33 ${FONTCONFIG_INCLUDE_DIR}
34 ${CMAKE_CURRENT_SOURCE_DIR}/lib)
36 set(libkfontinstview_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/viewpart/FontPreview.cpp
37 ${CMAKE_CURRENT_SOURCE_DIR}/viewpart/PreviewSelectAction.cpp
38 ${CMAKE_CURRENT_SOURCE_DIR}/viewpart/CharTip.cpp )
39 set(libkfontinstjobrunner_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/kcmfontinst/JobRunner.cpp
40 ${CMAKE_CURRENT_SOURCE_DIR}/kcmfontinst/ActionDialog.cpp
41 ${kfi_polkit_auth_SRCS})
43 add_subdirectory( lib )
44 add_subdirectory( kcmfontinst )
45 add_subdirectory( strigi-analyzer )
46 add_subdirectory( apps )
47 add_subdirectory( kio )
48 add_subdirectory( thumbnail )
49 add_subdirectory( viewpart )
51 kde4_install_icons( ${ICON_INSTALL_DIR} )
55 macro_log_feature(X11_Xft_FOUND "libxft" "X FreeType interface library" "http://www.x.org" FALSE "" "Font installer and font previews")