~ci-train-bot/location-service/location-service-ubuntu-yakkety-1895

« back to all changes in this revision

Viewing changes to src/location_service/com/ubuntu/location/providers/gps/CMakeLists.txt

  • Committer: Thomas Voß
  • Date: 2013-05-28 14:20:45 UTC
  • Revision ID: thomas.voss@canonical.com-20130528142045-kq5umqdmm4o53vwk
Initial push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
option(
 
2
    LOCATION_SERVICE_ENABLE_GPS_PROVIDER
 
3
    "Enable location providers relying on the Android HAL to connect to GPS HW"
 
4
    ON
 
5
)
 
6
 
 
7
if (LOCATION_SERVICE_ENABLE_GPS_PROVIDER)
 
8
  find_file(
 
9
    UBUNTU_APPLICATION_GPS_H ubuntu_application_gps.h
 
10
    NAMES ubuntu/application/ubuntu_application_gps.h
 
11
  )
 
12
 
 
13
  if (UBUNTU_APPLICATION_GPS_H)
 
14
    message(STATUS "Enabling GPS location provider")
 
15
 
 
16
    add_library(gps provider.cpp)
 
17
 
 
18
    target_link_libraries(gps ubuntu_application_api)
 
19
  
 
20
    set(
 
21
      ENABLED_PROVIDER_TARGETS
 
22
      ${ENABLED_PROVIDER_TARGETS} gps
 
23
      PARENT_SCOPE)
 
24
 
 
25
    set(
 
26
      ENABLED_PROVIDER_TARGETS_DEFINITIONS
 
27
      -DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_GPS ${ENABLED_PROVIDER_TARGETS_DEFINITIONS}
 
28
      PARENT_SCOPE
 
29
    )
 
30
  endif (UBUNTU_APPLICATION_GPS_H)
 
31
endif (LOCATION_SERVICE_ENABLE_GPS_PROVIDER)
 
 
b'\\ No newline at end of file'