~xnox/location-service/drop-sys-events

« back to all changes in this revision

Viewing changes to examples/standalone/connectivity/CMakeLists.txt

  • Committer: thomas-voss
  • Date: 2014-05-20 09:16:20 UTC
  • mto: This revision was merged to the branch mainline in revision 66.
  • Revision ID: thomas.voss@canonical.com-20140520091620-tiecez6hjvuiloel
Add standalone example for using the connectivity API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
cmake_minimum_required(VERSION 2.8)
 
2
 
 
3
project(connectivity)
 
4
 
 
5
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 
6
 
 
7
find_package(PkgConfig)
 
8
find_package(Threads)
 
9
 
 
10
pkg_check_modules(
 
11
  DBUS_CPP 
 
12
  dbus-cpp REQUIRED)
 
13
 
 
14
pkg_check_modules(
 
15
  PROCESS_CPP 
 
16
  process-cpp REQUIRED)
 
17
 
 
18
pkg_check_modules(
 
19
  LOCATION_CONNECTIVITY 
 
20
  ubuntu-location-service-connectivity REQUIRED)
 
21
 
 
22
include_directories(
 
23
  ${DBUS_CPP_INCLUDE_DIRS}
 
24
  ${PROCESS_CPP_INCLUDE_DIRS}
 
25
  ${LOCATION_CONNECTIVITY_INCLUDE_DIRS})
 
26
 
 
27
add_executable(
 
28
  connectivity
 
29
 
 
30
  connectivity.cpp)
 
31
 
 
32
target_link_libraries(
 
33
  connectivity
 
34
 
 
35
  ${CMAKE_THREAD_LIBS_INIT}
 
36
 
 
37
  ${DBUS_CPP_LDFLAGS}
 
38
  ${PROCESS_CPP_LDFLAGS}
 
39
  ${LOCATION_CONNECTIVITY_LDFLAGS})
 
40
 
 
41