X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=be5133b9d46d965980479befc7ee2e473e722fdb;hp=2332d8c4f8cffd0dd284b3e6dff5012e0c48ff37;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hpb=622ae84876eaab27ab232ee72e97e090b0aa57c0 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 2332d8c4..be5133b9 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -2,6 +2,7 @@ set(SOURCES abstractsqlstorage.cpp + authenticator.cpp core.cpp corealiasmanager.cpp coreapplication.cpp @@ -11,7 +12,8 @@ set(SOURCES corebuffersyncer.cpp corebufferviewconfig.cpp corebufferviewmanager.cpp - corecoreinfo.cpp + coredccconfig.cpp + corehighlightrulemanager.cpp coreidentity.cpp coreignorelistmanager.cpp coreircchannel.cpp @@ -33,6 +35,7 @@ set(SOURCES oidentdconfiggenerator.cpp postgresqlstorage.cpp sessionthread.cpp + sqlauthenticator.cpp sqlitestorage.cpp storage.cpp @@ -61,6 +64,13 @@ if (QCA2-QT5_FOUND) list(APPEND LIBS ${QCA2-QT5_LIBRARIES}) endif() +# Build with LDAP if told to do so. +if(HAVE_LDAP) + include_directories(${LDAP_INCLUDE_DIR}) + set(SOURCES ${SOURCES} ldapauthenticator.cpp) + set(MOC_HDRS ${MOC_HDRS} ldapauthenticator.h) +endif(HAVE_LDAP) + include_directories(${CMAKE_SOURCE_DIR}/src/common) set(CORE_RCS ${CORE_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/sql.qrc) @@ -70,3 +80,7 @@ add_library(mod_core STATIC ${SOURCES}) qt_use_modules(mod_core Core Network Script Sql) target_link_libraries(mod_core mod_common ${LIBS}) + +if(HAVE_LDAP) + target_link_libraries(mod_core ${LDAP_LIBRARIES}) +endif(HAVE_LDAP)