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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
option(
    LOCATION_SERVICE_ENABLE_SKYHOOK_PROVIDER
    "Enable location provider relying on the Skyhook SDK"
    ON
)

if (LOCATION_SERVICE_ENABLE_SKYHOOK_PROVIDER)

  pkg_check_modules(WPSAPI wpsapi)

  if (WPSAPI_FOUND)
    message(STATUS "Enabling support for Skyhook location providers")
    
    add_definitions(-DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_SKYHOOK)

    include_directories(${WPSAPI_INCLUDE_DIRS})
    link_directories(${WPSAPI_LIBRARY_DIRS})

    add_library(skyhook provider.cpp)
  
    target_link_libraries(
      skyhook 

      ${WPSAPI_LIBRARIES}
      iw
    )

    set(
      ENABLED_PROVIDER_TARGETS
      skyhook ${ENABLED_PROVIDER_TARGETS}
      PARENT_SCOPE
    )

    set(
      ENABLED_PROVIDER_TARGETS_DEFINITIONS
      -DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_SKYHOOK ${ENABLED_PROVIDER_TARGETS_DEFINITIONS}
      PARENT_SCOPE
    )
  endif (WPSAPI_FOUND)
endif (LOCATION_SERVICE_ENABLE_SKYHOOK_PROVIDER)