~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/dataengines/geolocation/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(geolocation)
 
2
 
 
3
# -------------------------------------------------------------------------------------------------
 
4
 
 
5
set(plasma_geolocation_interface_SRCS geolocationprovider.cpp)
 
6
kde4_add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS})
 
7
target_link_libraries(plasma-geolocation-interface ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS})
 
8
target_link_libraries(plasma-geolocation-interface
 
9
                      LINK_INTERFACE_LIBRARIES ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS})
 
10
set_target_properties(plasma-geolocation-interface PROPERTIES
 
11
   VERSION ${GENERIC_LIB_VERSION}
 
12
   SOVERSION ${GENERIC_LIB_SOVERSION}
 
13
)
 
14
install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS})
 
15
 
 
16
install(FILES geolocationprovider.h geolocation_export.h
 
17
        DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/geolocation
 
18
        COMPONENT Devel)
 
19
 
 
20
#install(FILES includes/Interface
 
21
#        DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation
 
22
#        COMPONENT Devel)
 
23
# -------------------------------------------------------------------------------------------------
 
24
 
 
25
set(plasma_dataengine_geolocation_SRCS geolocation.cpp)
 
26
kde4_add_plugin(plasma_engine_geolocation ${plasma_dataengine_geolocation_SRCS})
 
27
target_link_libraries(plasma_engine_geolocation
 
28
    plasma-geolocation-interface
 
29
    ${KDE4_PLASMA_LIBS}
 
30
    ${KDE4_KDECORE_LIBS}
 
31
    ${KDE4_KIO_LIBS}
 
32
    ${KDE4_SOLID_LIBS})
 
33
 
 
34
install(TARGETS plasma_engine_geolocation DESTINATION ${PLUGIN_INSTALL_DIR})
 
35
install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
36
install(FILES plasma-geolocationprovider.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
 
37
 
 
38
# -------------------------------------------------------------------------------------------------
 
39
 
 
40
set(plasma_geolocation_ip_SRCS location_ip.cpp)
 
41
kde4_add_plugin(plasma-geolocation-ip ${plasma_geolocation_ip_SRCS})
 
42
target_link_libraries(plasma-geolocation-ip plasma-geolocation-interface)
 
43
install(FILES plasma-geolocation-ip.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
44
install(TARGETS plasma-geolocation-ip DESTINATION ${PLUGIN_INSTALL_DIR})
 
45
 
 
46
# -------------------------------------------------------------------------------------------------
 
47
 
 
48
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
 
49
macro_optional_find_package(libgps)
 
50
macro_log_feature(LIBGPS_FOUND "libgps" "GPS support for geolocation" "http://gpsd.berlios.de/" FALSE "" "")
 
51
if(LIBGPS_FOUND)
 
52
    include_directories(${LIBGPS_INCLUDES} ${LIBGPS_INCLUDE_DIR})
 
53
    set(plasma_geolocation_gps_SRCS location_gps.cpp)
 
54
    kde4_add_plugin(plasma-geolocation-gps ${plasma_geolocation_gps_SRCS})
 
55
    target_link_libraries(plasma-geolocation-gps plasma-geolocation-interface ${LIBGPS_LIBRARIES})
 
56
    install(FILES plasma-geolocation-gps.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
57
    install(TARGETS plasma-geolocation-gps DESTINATION ${PLUGIN_INSTALL_DIR})
 
58
endif(LIBGPS_FOUND)
 
59
 
 
60
# -------------------------------------------------------------------------------------------------