remove_definitions(-DKDE_DEFAULT_DEBUG_AREA=5600) #remove kontact debug area
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5602)

if(QGPGME_FOUND)
  if(BUILD_kmail)
    add_subdirectory( kmail )
  endif(BUILD_kmail)
  if (BUILD_kmail AND BUILD_korganizer AND KDEPIMLIBS_KRESOURCES_LIBRARY)
    add_subdirectory( korganizer )
  endif (BUILD_kmail AND BUILD_korganizer AND KDEPIMLIBS_KRESOURCES_LIBRARY)
  add_subdirectory( summary )
  if (KDEPIMLIBS_KRESOURCES_LIBRARY)
    add_subdirectory( specialdates )
  endif (KDEPIMLIBS_KRESOURCES_LIBRARY)
#AKONADI_PORT: planner
#  add_subdirectory( planner )
endif(QGPGME_FOUND)
if (BUILD_knotes AND KDEPIMLIBS_KRESOURCES_LIBRARY)
  add_subdirectory( knotes )
endif (BUILD_knotes AND KDEPIMLIBS_KRESOURCES_LIBRARY)
if (BUILD_knode)
  add_subdirectory( knode )
endif (BUILD_knode)
if (BUILD_kjots)
  add_subdirectory( kjots )
endif (BUILD_kjots)
if (BUILD_akregator)
  add_subdirectory( akregator )
endif (BUILD_akregator)
if(BUILD_ktimetracker)
  add_subdirectory( ktimetracker )
endif(BUILD_ktimetracker)
if(BUILD_kaddressbook)
  add_subdirectory(kaddressbook)
endif(BUILD_kaddressbook)

