FIND_PACKAGE(libgps)
IF(LIBGPS_FOUND)
     MESSAGE( STATUS "Building with gpsd position provider")
     ADD_SUBDIRECTORY( gpsd )
ELSE(LIBGPS_FOUND)
     MESSAGE( STATUS "Not building with gpsd position provider")
ENDIF(LIBGPS_FOUND)

FIND_PACKAGE(liblocation)
IF(liblocation_FOUND)
     MESSAGE( STATUS "Building with Maemo GPS support")
     ADD_SUBDIRECTORY( maemo )
ENDIF(liblocation_FOUND)

FIND_PACKAGE(QtLocation)
IF(QTLOCATION_FOUND)
     MESSAGE( STATUS "Building with QtLocation support")
     ADD_SUBDIRECTORY( qtmobility )
ENDIF(QTLOCATION_FOUND)

OPTION(BUILD_GPS_FILEREADER_PLUGIN "Build the kml file reader position provider")
IF( BUILD_GPS_FILEREADER_PLUGIN )
    ADD_SUBDIRECTORY( filereader )
ENDIF()

ADD_SUBDIRECTORY( placemark )

# experimental implementation
# ADD_SUBDIRECTORY( geoclue )
