kdelibs/kdecore/auth/ConfigureChecks.cmake

39 lines
1.4 KiB
CMake
Raw Normal View History

2014-11-13 01:04:59 +02:00
########################
# Helper backend probing
2014-11-17 17:40:17 +00:00
set(KAUTH_BACKEND "DBus" CACHE STRING "Specifies the KAuth helper backend to build. Current available options are
DBus. Not setting this variable will build the most appropriate backend for your system")
2014-11-13 01:04:59 +02:00
# Add the correct libraries/files depending on the backend
2014-11-17 17:40:17 +00:00
if (KAUTH_BACKEND STREQUAL "DBus")
set(KAUTH_COMPILING_DBUS_HELPER_BACKEND TRUE)
2014-11-21 01:38:25 +00:00
set(KDE4_AUTH_HELPER_BACKEND_NAME "DBUS")
set(KDE4_AUTH_BACKEND_NAME "DBUS")
set(KAUTH_BACKEND_SRCS
auth/backends/dbus/DBusBackend.cpp
auth/backends/dbus/DBusBackend.h
)
set(KAUTH_BACKEND_LIBS ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
qt4_add_dbus_adaptor(kauth_dbus_adaptor_SRCS
2014-11-13 01:04:59 +02:00
auth/backends/dbus/org.kde.auth.xml
auth/backends/dbus/DBusHelperProxy.h
KAuth::DBusHelperProxy)
set(KAUTH_HELPER_BACKEND_SRCS
2014-11-13 01:04:59 +02:00
auth/backends/dbus/DBusHelperProxy.cpp
${kauth_dbus_adaptor_SRCS}
)
set(KAUTH_HELPER_BACKEND_LIBS kdecore)
2014-11-13 01:04:59 +02:00
# Install some files as well
install( FILES auth/backends/dbus/org.kde.auth.conf
DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d )
2014-11-13 01:04:59 +02:00
install( FILES auth/backends/dbus/dbus_policy.stub
auth/backends/dbus/dbus_service.stub
DESTINATION ${DATA_INSTALL_DIR}/kauth COMPONENT Devel)
2014-11-13 01:04:59 +02:00
endif()
## End