add more spacing
[personal-kdebase.git] / workspace / kcontrol / kfontinst / CMakeLists.txt
blob893d157b21a484d6e52b1c631ea768c45688a0d4
2 if (X11_Xft_FOUND)
4   # disable policykit usage for now...
5   if (KFI_USE_POLICY_KIT)
6     include(FindPkgConfig)
7     pkg_check_modules(POLKIT polkit>=0.7)
9     if (POLKIT_FOUND)
10         pkg_check_modules(DBUS dbus-1>=1.1.20)
11     endif (POLKIT_FOUND)
13     if (DBUS_FOUND)
14         pkg_check_modules(POLKITDBUS polkit-dbus>=0.7)
15     endif (DBUS_FOUND)
17     if (POLKITDBUS_FOUND)
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)
21         set(USE_POLICYKIT 1)
22     else (POLKITDBUS_FOUND)
23         set(USE_POLICYKIT 0)
24     endif (POLKITDBUS_FOUND)
25   else (KFI_USE_POLICY_KIT)
26     set(USE_POLICYKIT 0)
27   endif (KFI_USE_POLICY_KIT)
29   configure_file(config-fontinst.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-fontinst.h)
31   include_directories(
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} )
53 endif (X11_Xft_FOUND)
55 macro_log_feature(X11_Xft_FOUND "libxft" "X FreeType interface library" "http://www.x.org" FALSE "" "Font installer and font previews")