~mterry/indicator-sound/snap-root

« back to all changes in this revision

Viewing changes to tests/service-mocks/accounts-mock/CMakeLists.txt

  • Committer: CI Train Bot
  • Author(s): Xavi Garcia Mena
  • Date: 2016-01-05 15:08:02 UTC
  • mfrom: (513.1.2 restore-osd-notifications)
  • Revision ID: ci-train-bot@canonical.com-20160105150802-9n0tg5ipbbq2qbab
This branch just readds the OSD notifications code, that was reverted in trunk as the corresponding silo was also rolled back after landing.
Approved by: PS Jenkins bot, Xavi Garcia

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(CMAKE_AUTOMOC ON)
 
2
set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
3
 
 
4
find_package(Qt5DBus REQUIRED)
 
5
include_directories(${Qt5DBus_INCLUDE_DIRS}
 
6
                    "${CMAKE_SOURCE_DIR}/tests/service-mocks")
 
7
 
 
8
add_definitions(-DQT_NO_KEYWORDS=1)
 
9
 
 
10
set(dbusinterface_sound_xml "com.ubuntu.AccountsService.Sound.Mock.xml")
 
11
set_source_files_properties(${dbusinterface_sound_xml} PROPERTIES
 
12
  CLASSNAME AccountsServiceSoundMockInterface)
 
13
 
 
14
qt5_add_dbus_interface(interface_files ${dbusinterface_sound_xml} accountsservice_sound_interface)
 
15
 
 
16
qt5_add_dbus_adaptor(adaptor_files
 
17
    com.ubuntu.AccountsService.Sound.Mock.xml
 
18
    AccountsServiceSoundMock.h
 
19
    ubuntu::indicators::testing::AccountsServiceSoundMock
 
20
    AccountsServiceSoundMockAdaptor)
 
21
 
 
22
qt5_add_dbus_adaptor(adaptor_files
 
23
    ${CMAKE_SOURCE_DIR}/tests/dbus-types/org.freedesktop.Accounts.xml
 
24
    AccountsMock.h
 
25
    ubuntu::indicators::testing::AccountsMock
 
26
    AccountsMockAdaptor)
 
27
 
 
28
add_executable(
 
29
  accounts-service-sound
 
30
  ${interface_files}
 
31
  ${adaptor_files}
 
32
  AccountsServiceSoundMock.cpp
 
33
  AccountsMock.cpp
 
34
  ${CMAKE_SOURCE_DIR}/tests/service-mocks/DBusPropertiesNotifier.cpp
 
35
  main.cpp
 
36
)
 
37
 
 
38
qt5_use_modules(
 
39
    accounts-service-sound
 
40
    Core
 
41
    DBus
 
42
)