~thomas-voss/dbus-cpp/trunk

« back to all changes in this revision

Viewing changes to examples/upower/CMakeLists.txt

  • Committer: Thomas Voß
  • Date: 2013-05-21 09:49:21 UTC
  • Revision ID: thomas.voss@canonical.com-20130521094921-iac4thmiozeshjj7
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright © 2013 Canonical Ltd.
 
2
#
 
3
# This program is free software: you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License version 3 as
 
5
# published by the Free Software Foundation.
 
6
#
 
7
# This program is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
# GNU General Public License for more details.
 
11
#
 
12
# You should have received a copy of the GNU General Public License
 
13
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
#
 
15
# Authored by: Thomas Voss <thomas.voss@canonical.com>
 
16
 
 
17
find_package(PkgConfig)
 
18
find_package(Boost COMPONENTS system)
 
19
find_package(Threads)
 
20
 
 
21
pkg_check_modules(DBUS dbus-1)
 
22
 
 
23
include_directories(
 
24
        ${CMAKE_SOURCE_DIR}/include/dbus
 
25
    ${DBUS_INCLUDE_DIRS}
 
26
    ${Boost_INCLUDE_DIRS}
 
27
    ${GTEST_INCLUDE_DIRS}
 
28
)
 
29
 
 
30
add_executable(
 
31
        upower
 
32
        main.cpp
 
33
)
 
34
 
 
35
target_link_libraries(
 
36
    upower
 
37
    ${CMAKE_THREAD_LIBS_INIT}
 
38
    ${Boost_LIBRARIES}
 
39
    ${DBUS_LIBRARIES}
 
40
    gtest
 
41
    gtest_main
 
42
)
 
 
b'\\ No newline at end of file'