aboutsummaryrefslogtreecommitdiff
path: root/tests/service-mocks/accounts-mock/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-16 07:47:15 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-16 07:47:15 +0100
commitf67f74e2569cb5061261bbb34065ac3680fa4e57 (patch)
tree6bc49eff1d2571e92f7794af8b2e34423e3faf00 /tests/service-mocks/accounts-mock/CMakeLists.txt
parent9b7a0b23491dd423be362215dec27ba0d420c99f (diff)
downloadayatana-indicator-sound-f67f74e2569cb5061261bbb34065ac3680fa4e57.tar.gz
ayatana-indicator-sound-f67f74e2569cb5061261bbb34065ac3680fa4e57.tar.bz2
ayatana-indicator-sound-f67f74e2569cb5061261bbb34065ac3680fa4e57.zip
More namespacing mess clean-ups. (We mixed up com.ubuntu with com.canonical...).
Diffstat (limited to 'tests/service-mocks/accounts-mock/CMakeLists.txt')
-rw-r--r--tests/service-mocks/accounts-mock/CMakeLists.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/service-mocks/accounts-mock/CMakeLists.txt b/tests/service-mocks/accounts-mock/CMakeLists.txt
index 17892f3..9ef32fa 100644
--- a/tests/service-mocks/accounts-mock/CMakeLists.txt
+++ b/tests/service-mocks/accounts-mock/CMakeLists.txt
@@ -19,11 +19,19 @@ set_source_files_properties(${dbusinterface_sound_xml} PROPERTIES
qt5_add_dbus_interface(interface_files ${dbusinterface_sound_xml} accountsservice_sound_interface)
-qt5_add_dbus_adaptor(adaptor_files
- org.ayatana.AccountsService.Sound.Mock.xml
- AccountsServiceSoundMock.h
- ubuntu::indicators::testing::AccountsServiceSoundMock
- AccountsServiceSoundMockAdaptor)
+if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.AccountsService.Sound.xml")
+ qt5_add_dbus_adaptor(adaptor_files
+ com.ubuntu.AccountsService.Sound.Mock.xml
+ AccountsServiceSoundMock.h
+ ubuntu::indicators::testing::AccountsServiceSoundMock
+ AccountsServiceSoundMockAdaptor)
+else()
+ qt5_add_dbus_adaptor(adaptor_files
+ org.ayatana.AccountsService.Sound.Mock.xml
+ AccountsServiceSoundMock.h
+ ubuntu::indicators::testing::AccountsServiceSoundMock
+ AccountsServiceSoundMockAdaptor)
+endif()
qt5_add_dbus_adaptor(adaptor_files
${CMAKE_SOURCE_DIR}/tests/dbus-types/org.freedesktop.Accounts.xml