X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=42f2ab36672b1540e0e1baa1a960be099a2000b9;hp=b6ab772573b297f20899d38d7214b1bdf9752d4e;hb=61aac1868f15babb7086d8bc6bbcff530346f438;hpb=c67fec44128f48c1ac2ab7ef2b6f73a27fb67f66 diff --git a/CMakeLists.txt b/CMakeLists.txt index b6ab7725..42f2ab36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,13 +40,13 @@ include(QuasselMacros) # Options and variables that can be set on the command line ##################################################################### -# First, choose a Qt version. We support USE_QT4 and USE_QT5; if neither is set, prefer Qt4 for now -option(USE_QT5 "Enable support for Qt5 (disables KDE integration)" OFF) -if (USE_QT4) # takes precedence - set(USE_QT5 OFF) +# First, choose a Qt version. We support USE_QT5 and USE_QT4; if neither is set, Qt5 will be used +option(USE_QT5 "Enable support for Qt5" OFF) +if (USE_QT5) # takes precedence + set(USE_QT4 OFF) else() - if (NOT USE_QT5) - set(USE_QT4 ON) + if (NOT USE_QT4) + set(USE_QT5 ON) endif() endif() @@ -133,6 +133,10 @@ if (LINK_EXTRA) endif() +# LDAP Authentication (and other authentication backends). +#################################################################### +option(WITH_LDAP "Enable LDAP authentication support if present on system" ON) + # Setup CMake ##################################################################### @@ -514,6 +518,19 @@ if (CMAKE_COMPILER_IS_GNUCXX) string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) endif() +# Setup LDAP Authentication support. +##################################################################### +if(WITH_LDAP) + find_package(Ldap) + if(LDAP_FOUND) + message(STATUS "Enabling LDAP authentication support") + set(HAVE_LDAP true) + else(LDAP_FOUND) + message(STATUS "Disabling LDAP authentication support") + endif(LDAP_FOUND) +else(WITH_LDAP) + message(STATUS "Not enabling LDAP authentication support") +endif(WITH_LDAP) # Setup KDE / KDE Frameworks #####################################################################