X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=a764608389ad6b4a69c8fd404a84b7ef7024fafa;hb=cdc6091a2e02b84a48937cda287a0769ceb8726a;hp=8d2e9dbb47022150802c6fe4ba64e78f70b55512;hpb=61aac1868f15babb7086d8bc6bbcff530346f438;p=quassel.git diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 8d2e9dbb..a7646083 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -2,7 +2,7 @@ set(SOURCES abstractsqlstorage.cpp - authenticator.cpp + authenticator.cpp core.cpp corealiasmanager.cpp coreapplication.cpp @@ -12,8 +12,8 @@ set(SOURCES corebuffersyncer.cpp corebufferviewconfig.cpp corebufferviewmanager.cpp - corecoreinfo.cpp coredccconfig.cpp + corehighlightrulemanager.cpp coreidentity.cpp coreignorelistmanager.cpp coreircchannel.cpp @@ -30,6 +30,7 @@ set(SOURCES coreusersettings.cpp ctcpparser.cpp eventstringifier.cpp + identserver.cpp ircparser.cpp netsplit.cpp oidentdconfiggenerator.cpp @@ -64,6 +65,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) @@ -73,3 +81,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)