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 10:05:25 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-16 10:18:03 +0100
commit81a2976123ac89d29628a610d3ac96f1d57beadd (patch)
tree989f6fd9b48bf33bfbb08df4d6b15e02ce7f3dc3 /tests/service-mocks/accounts-mock/CMakeLists.txt
parentd2bcfdfe44568123b688c86b3a69e4a932641a33 (diff)
downloadayatana-indicator-sound-81a2976123ac89d29628a610d3ac96f1d57beadd.tar.gz
ayatana-indicator-sound-81a2976123ac89d29628a610d3ac96f1d57beadd.tar.bz2
ayatana-indicator-sound-81a2976123ac89d29628a610d3ac96f1d57beadd.zip
Some CMakeLists.txt optimizations.
Diffstat (limited to 'tests/service-mocks/accounts-mock/CMakeLists.txt')
-rw-r--r--tests/service-mocks/accounts-mock/CMakeLists.txt18
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/service-mocks/accounts-mock/CMakeLists.txt b/tests/service-mocks/accounts-mock/CMakeLists.txt
index 9ef32fa..421e155 100644
--- a/tests/service-mocks/accounts-mock/CMakeLists.txt
+++ b/tests/service-mocks/accounts-mock/CMakeLists.txt
@@ -19,19 +19,11 @@ set_source_files_properties(${dbusinterface_sound_xml} PROPERTIES
qt5_add_dbus_interface(interface_files ${dbusinterface_sound_xml} accountsservice_sound_interface)
-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
+ ${dbusinterface_sound_xml}
+ AccountsServiceSoundMock.h
+ ubuntu::indicators::testing::AccountsServiceSoundMock
+ AccountsServiceSoundMockAdaptor)
qt5_add_dbus_adaptor(adaptor_files
${CMAKE_SOURCE_DIR}/tests/dbus-types/org.freedesktop.Accounts.xml