IF (HAVE_STL)
    PLAYERDRIVER_OPTION (mica2 build_mica2 ON)
ELSE (HAVE_STL)
    PLAYERDRIVER_OPTION (mica2 build_mica2 OFF "STL not found.")
ENDIF (HAVE_STL)
PLAYERDRIVER_REJECT_OS (mica2 build_mica2 PLAYER_OS_WIN)
PLAYERDRIVER_ADD_DRIVER (mica2 build_mica2 SOURCES mica2.cc)

IF (HAVE_STL)
    PLAYERDRIVER_OPTION (rcore_xbridge build_rcore_xbridge ON)
ELSE (HAVE_STL)
    PLAYERDRIVER_OPTION (rcore_xbridge build_rcore_xbridge OFF "STL not found.")
ENDIF (HAVE_STL)
PLAYERDRIVER_REQUIRE_HEADER (rcore_xbridge build_rcore_xbridge libparticle.h)
PLAYERDRIVER_ADD_DRIVER (rcore_xbridge build_rcore_xbridge LINKFLAGS "-lparticle" SOURCES rcore_xbridge.cc)

IF (HAVE_STL)
    PLAYERDRIVER_OPTION (accel_calib build_accel_calib ON)
ELSE (HAVE_STL)
    PLAYERDRIVER_OPTION (accel_calib build_accel_calib OFF "STL not found.")
ENDIF (HAVE_STL)
PLAYERDRIVER_ADD_DRIVER (accel_calib build_accel_calib SOURCES accel_calib.cc)

PLAYERDRIVER_OPTION (phidgetAcc build_phidgetAcc ON)
SET (PHIDGETACC_DIR "" CACHE STRING "Directory containing the Phidget Acc headers and libraries")
MARK_AS_ADVANCED (PHIDGETACC_DIR)
IF ("${PHIDGETACC_DIR}" STREQUAL "")
    SET (phidgetReqHeader "phidget21.h")
    SET (phidgetExtraFlags "")
    SET (phidgetExtraLibs "-lphidget21")
ELSE ("${PHIDGETACC_DIR}" STREQUAL "")
    SET (phidgetReqHeader "${PHIDGETACC_DIR}/phidget21.h")
    SET (phidgetExtraFlags "-I${PHIDGETACC_DIR}/include")
    SET (phidgetExtraLibs "-L${PHIDGETACC_DIR}/lib -lphidget21")
ENDIF ("${PHIDGETACC_DIR}" STREQUAL "")
PLAYERDRIVER_REQUIRE_HEADER (phidgetAcc build_phidgetAcc ${phidgetReqHeader})
PLAYERDRIVER_ADD_DRIVER (phidgetAcc build_phidgetAcc
    LINKFLAGS ${phidgetExtraLibs} CFLAGS ${phidgetExtraFlags}
    SOURCES phidgetAcc.cc)
