2014-11-13 19:30:51 +02:00
|
|
|
project(geolocation)
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
set(plasma_geolocation_interface_SRCS geolocationprovider.cpp)
|
2015-09-01 04:37:19 +03:00
|
|
|
add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS})
|
2021-07-28 01:38:38 +03:00
|
|
|
target_link_libraries(plasma-geolocation-interface PUBLIC
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
)
|
|
|
|
|
2014-11-13 19:30:51 +02:00
|
|
|
set_target_properties(plasma-geolocation-interface PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2021-07-28 01:38:38 +03:00
|
|
|
|
|
|
|
generate_export_header(plasma-geolocation-interface BASE_NAME geolocation)
|
|
|
|
|
2014-11-13 19:30:51 +02:00
|
|
|
install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
2021-07-28 01:38:38 +03:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
geolocationprovider.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/geolocation_export.h
|
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/geolocation
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
#install(FILES includes/Interface
|
2020-02-08 19:29:32 +00:00
|
|
|
# DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation
|
2014-11-13 19:30:51 +02:00
|
|
|
# COMPONENT Devel)
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
set(plasma_dataengine_geolocation_SRCS geolocation.cpp)
|
|
|
|
kde4_add_plugin(plasma_engine_geolocation ${plasma_dataengine_geolocation_SRCS})
|
|
|
|
target_link_libraries(plasma_engine_geolocation
|
|
|
|
plasma-geolocation-interface
|
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KIO_LIBS}
|
2021-07-28 01:38:38 +03:00
|
|
|
${KDE4_SOLID_LIBS}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install(TARGETS plasma_engine_geolocation DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|
|
|
|
install(FILES plasma-geolocationprovider.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
set(plasma_geolocation_ip_SRCS location_ip.cpp)
|
|
|
|
kde4_add_plugin(plasma-geolocation-ip ${plasma_geolocation_ip_SRCS})
|
|
|
|
target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface)
|
2020-02-08 19:29:32 +00:00
|
|
|
install(FILES plasma-geolocation-ip.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|
|
|
|
install(TARGETS plasma-geolocation-ip DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if(LIBGPS_FOUND)
|
|
|
|
include_directories(${LIBGPS_INCLUDES} ${LIBGPS_INCLUDE_DIR})
|
|
|
|
set(plasma_geolocation_gps_SRCS location_gps.cpp)
|
|
|
|
kde4_add_plugin(plasma-geolocation-gps ${plasma_geolocation_gps_SRCS})
|
|
|
|
target_link_libraries(plasma-geolocation-gps plasma-geolocation-interface ${LIBGPS_LIBRARIES})
|
2020-02-08 19:29:32 +00:00
|
|
|
install(FILES plasma-geolocation-gps.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|
|
|
|
install(TARGETS plasma-geolocation-gps DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-13 19:30:51 +02:00
|
|
|
endif(LIBGPS_FOUND)
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|