~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/skyhook/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_SKYHOOK_PROVIDER
 
3
    "Enable location provider relying on the Skyhook SDK"
 
4
    ON
 
5
)
 
6
 
 
7
if (LOCATION_SERVICE_ENABLE_SKYHOOK_PROVIDER)
 
8
 
 
9
  pkg_check_modules(WPSAPI wpsapi)
 
10
 
 
11
  if (WPSAPI_FOUND)
 
12
    message(STATUS "Enabling support for Skyhook location providers")
 
13
    
 
14
    add_definitions(-DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_SKYHOOK)
 
15
 
 
16
    include_directories(${WPSAPI_INCLUDE_DIRS})
 
17
    link_directories(${WPSAPI_LIBRARY_DIRS})
 
18
 
 
19
    add_library(skyhook provider.cpp)
 
20
  
 
21
    target_link_libraries(
 
22
      skyhook 
 
23
 
 
24
      ${WPSAPI_LIBRARIES}
 
25
      iw
 
26
    )
 
27
 
 
28
    set(
 
29
      ENABLED_PROVIDER_TARGETS
 
30
      skyhook ${ENABLED_PROVIDER_TARGETS}
 
31
      PARENT_SCOPE
 
32
    )
 
33
 
 
34
    set(
 
35
      ENABLED_PROVIDER_TARGETS_DEFINITIONS
 
36
      -DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_SKYHOOK ${ENABLED_PROVIDER_TARGETS_DEFINITIONS}
 
37
      PARENT_SCOPE
 
38
    )
 
39
  endif (WPSAPI_FOUND)
 
40
endif (LOCATION_SERVICE_ENABLE_SKYHOOK_PROVIDER)