add_subdirectory(applicationjobs)
add_subdirectory(dict)
add_subdirectory(executable)
add_subdirectory(favicons)
add_subdirectory(filebrowser)
add_subdirectory(geolocation)
add_subdirectory(hotplug)
add_subdirectory(keystate)
add_subdirectory(network)
add_subdirectory(notifications)
add_subdirectory(nowplaying)
add_subdirectory(places)
add_subdirectory(powermanagement)
add_subdirectory(soliddevice)
add_subdirectory(time)
add_subdirectory(weather)

if (NEPOMUK_FOUND)
    add_subdirectory(metadata)
endif (NEPOMUK_FOUND)

macro_optional_find_package(KdepimLibs 4.2.85)
macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several plasma dataengines")

if(KDEPIMLIBS_FOUND)
   add_subdirectory(akonadi)
   add_subdirectory(calendar)
   add_subdirectory(rss)
endif(KDEPIMLIBS_FOUND)

if(NOT WIN32)
   add_subdirectory(mouse)
   add_subdirectory(systemmonitor)
   add_subdirectory(tasks)
endif(NOT WIN32)

