mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
cmake: import LibGPS module from kde-workspace
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
91ee52c839
commit
83fc0ed955
2 changed files with 17 additions and 0 deletions
|
@ -72,6 +72,7 @@ set(cmakeFiles
|
|||
FindLibArt.cmake
|
||||
FindLibAttica.cmake
|
||||
FindLibGcrypt.cmake
|
||||
FindLibGPS.cmake
|
||||
FindLibintl.cmake
|
||||
FindLibKasten.cmake
|
||||
FindLibKonq.cmake
|
||||
|
|
16
cmake/modules/FindLibGPS.cmake
Normal file
16
cmake/modules/FindLibGPS.cmake
Normal file
|
@ -0,0 +1,16 @@
|
|||
# LIBGPS_FOUND - system has the LIBGPS library
|
||||
# LIBGPS_INCLUDE_DIR - the LIBGPS include directory
|
||||
# LIBGPS_LIBRARIES - The libraries needed to use LIBGPS
|
||||
|
||||
if(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)
|
||||
set(LIBGPS_FOUND TRUE)
|
||||
else(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)
|
||||
|
||||
find_path(LIBGPS_INCLUDE_DIR NAMES gps.h)
|
||||
find_library(LIBGPS_LIBRARIES NAMES gps)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(libgps DEFAULT_MSG LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
|
||||
|
||||
mark_as_advanced(LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
|
||||
endif(LIBGPS_INCLUDE_DIR AND LIBGPS_LIBRARIES)
|
Loading…
Add table
Reference in a new issue