on e9cd5c8 help sign in
34 lines 1.2 kB history raw
1add_definitions(-DSM_BUSNAME=systemBus)
3add_library(AccountsService-qml MODULE
4 AccountsService.cpp
5 AccountsServiceDBusAdaptor.cpp
6 plugin.cpp
7 )
9qt5_use_modules(AccountsService-qml DBus Qml)
11add_unity8_plugin(AccountsService 0.1 AccountsService TARGETS AccountsService-qml)
13set(POLKIT_LIB_DIR "${CMAKE_INSTALL_LOCALSTATEDIR}/lib/polkit-1")
14set(POLKIT_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/polkit-1")
15set(DBUS_IFACE_DIR "${CMAKE_INSTALL_PREFIX}/share/dbus-1/interfaces")
16set(ACCOUNTS_IFACE_DIR "${CMAKE_INSTALL_PREFIX}/share/accountsservice/interfaces")
18install(FILES com.canonical.unity.AccountsService.xml
19 DESTINATION "${DBUS_IFACE_DIR}"
20 )
22# Create accountsservice symlink for above dbus interface
23install(CODE "
24execute_process(COMMAND mkdir -p \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
25execute_process(COMMAND ln -sf ../../dbus-1/interfaces/com.canonical.unity.AccountsService.xml \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
26 ")
28install(FILES com.canonical.unity.AccountsService.policy
29 DESTINATION "${POLKIT_DATA_DIR}/actions"
30 )
32install(FILES 50-com.canonical.unity.AccountsService.pkla
33 DESTINATION "${POLKIT_LIB_DIR}/localauthority/10-vendor.d"
34 )