MapWizard: move most recently used URL on top of static server history (and make...
[marble:marble.git] / Findlibgps.cmake
1 # LIBGPS_FOUND - system has the LIBGPS library
2 # LIBGPS_INCLUDE_DIR - the LIBGPS include directory
3 # LIBGPS_LIBRARIES - The libraries needed to use LIBGPS
4
5 if(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)
6   set(LIBGPS_FOUND TRUE)
7 else(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)
8
9   find_path(LIBGPS_INCLUDE_DIR NAMES gps.h)
10   find_library(LIBGPS_LIBRARIES NAMES gps)
11
12   include(FindPackageHandleStandardArgs)
13   find_package_handle_standard_args(libgps DEFAULT_MSG LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
14
15   mark_as_advanced(LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
16 endif(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)