diff options
Diffstat (limited to 'cmake_modules/FindGPSD.cmake')
-rw-r--r-- | cmake_modules/FindGPSD.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake_modules/FindGPSD.cmake b/cmake_modules/FindGPSD.cmake new file mode 100644 index 0000000..d5dc416 --- /dev/null +++ b/cmake_modules/FindGPSD.cmake @@ -0,0 +1,19 @@ +# - Find GPSD +# Find the native GPSD includes and library + +FIND_PATH(GPSD_INCLUDE_DIR libgpsmm.h gps.h) + +SET(GPSD_NAMES ${GPSD_NAMES} gps) +FIND_LIBRARY(GPSD_LIBRARY NAMES ${GPSD_NAMES} ) + +# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(GPSD DEFAULT_MSG GPSD_LIBRARY GPSD_INCLUDE_DIR) + +IF(GPSD_FOUND) + SET(GPSD_LIBRARIES ${GPSD_LIBRARY}) + message(STATUS "Found libgps: ${GPSD_LIBRARIES}") +ENDIF(GPSD_FOUND) + + |