File: FindGPSD.cmake

package info (click to toggle)
libinovasdk 1.3.6-5
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 1,084 kB
  • sloc: ansic: 106; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (118)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)