kde-workspace/plasma/dataengines/geolocation/CMakeLists.txt

58 lines
2.7 KiB
Text
Raw Normal View History

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})
target_link_libraries(plasma-geolocation-interface PRIVATE ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS})
2014-11-13 19:30:51 +02: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}
)
install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES geolocationprovider.h geolocation_export.h
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/geolocation
COMPONENT Devel)
#install(FILES includes/Interface
# DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation
# 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}
${KDE4_SOLID_LIBS})
install(TARGETS plasma_engine_geolocation DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES plasma-geolocationprovider.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
# -------------------------------------------------------------------------------------------------
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)
install(FILES plasma-geolocation-ip.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS plasma-geolocation-ip DESTINATION ${PLUGIN_INSTALL_DIR})
# -------------------------------------------------------------------------------------------------
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})
install(FILES plasma-geolocation-gps.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS plasma-geolocation-gps DESTINATION ${PLUGIN_INSTALL_DIR})
endif(LIBGPS_FOUND)
# -------------------------------------------------------------------------------------------------