File: FindGPSD.cmake

package info (click to toggle)
indi-mi 1.8-1
  • links: PTS
  • area: contrib
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: cpp: 852; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (114)
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)