######################## # Helper backend probing 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") # Add the correct libraries/files depending on the backend if (KAUTH_BACKEND STREQUAL "DBUS") set(KAUTH_COMPILING_DBUS_HELPER_BACKEND TRUE) set(KAUTH_BACKEND_SRCS auth/backends/dbus/DBusBackend.cpp auth/backends/dbus/DBusBackend.h ) set(KAUTH_BACKEND_LIBS ${QT_QTCORE_LIBRARY}) qt4_add_dbus_adaptor(kauth_dbus_adaptor_SRCS auth/backends/dbus/org.kde.auth.xml auth/backends/dbus/DBusHelperProxy.h KAuth::DBusHelperProxy) set(KAUTH_HELPER_BACKEND_SRCS auth/backends/dbus/DBusHelperProxy.cpp ${kauth_dbus_adaptor_SRCS} ) set(KAUTH_HELPER_BACKEND_LIBS kdecore) # Install some files as well install( FILES auth/backends/dbus/org.kde.auth.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d ) install( FILES auth/backends/dbus/dbus_policy.stub auth/backends/dbus/dbus_service.stub DESTINATION ${DATA_INSTALL_DIR}/kauth COMPONENT Devel) endif() set(kdecore_LIB_SRCS ${kdecore_LIB_SRCS} ${KAUTH_BACKEND_SRCS} ) # Set directories for plugins _set_fancy(KAUTH_HELPER_PLUGIN_DIR "${PLUGIN_INSTALL_DIR}/plugins/kauth/helper" "Where KAuth's helper plugin will be installed") _set_fancy(KAUTH_BACKEND_PLUGIN_DIR "${PLUGIN_INSTALL_DIR}/plugins/kauth/backend" "Where KAuth's backend plugin will be installed") #set(KAUTH_OTHER_PLUGIN_DIR "${QT_PLUGINS_DIR}/kauth/plugins") ## End