generic: move libgps module to kdelibs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2015-11-16 12:04:00 +02:00
parent b6f6de06ff
commit ec3d299178
3 changed files with 8 additions and 22 deletions

View file

@ -167,6 +167,14 @@ set_package_properties(PNG PROPERTIES
TYPE REQUIRED
)
macro_optional_find_package(LibGPS)
set_package_properties(LibGPS PROPERTIES
DESCRIPTION "GPSes/AIS service library"
URL "http://www.catb.org/gpsd/"
PURPOSE "GPS support for geolocation in plasma dataengine"
TYPE OPTIONAL
)
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
check_include_files(sys/time.h HAVE_SYS_TIME_H)

View file

@ -45,12 +45,6 @@ install(TARGETS plasma-geolocation-ip DESTINATION ${PLUGIN_INSTALL_DIR})
# -------------------------------------------------------------------------------------------------
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
macro_optional_find_package(libgps)
set_package_properties(libgps PROPERTIES DESCRIPTION "GPS support for geolocation"
URL "http://gpsd.berlios.de/"
TYPE OPTIONAL
)
if(LIBGPS_FOUND)
include_directories(${LIBGPS_INCLUDES} ${LIBGPS_INCLUDE_DIR})
set(plasma_geolocation_gps_SRCS location_gps.cpp)

View file

@ -1,16 +0,0 @@
# 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)