X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=6e9803798a08759f980c09f9f04432b02eaa9fcf;hb=4b0caf61565c8791efba283bbcaf73530b9feafc;hp=d6f467f6dec3e75e69506cee1b792d8280534785;hpb=bc544f569faedea50c7715844a2261872796c683;p=quassel.git diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d6f467f6..6e980379 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 @@ -12,6 +13,7 @@ set(SOURCES corebufferviewconfig.cpp corebufferviewmanager.cpp corecoreinfo.cpp + coredccconfig.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 @@ -45,7 +48,7 @@ set(LIBS ) if(HAVE_SSL) set(SOURCES ${SOURCES} sslserver.cpp) include_directories(${OPENSSL_INCLUDE_DIR}) -endif(HAVE_SSL) +endif() if (QCA2_FOUND) add_definitions(-DHAVE_QCA2) @@ -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) @@ -69,8 +79,8 @@ qt_add_resources(SOURCES ${CORE_RCS}) add_library(mod_core STATIC ${SOURCES}) qt_use_modules(mod_core Core Network Script Sql) -add_dependencies(mod_core mod_common) +target_link_libraries(mod_core mod_common ${LIBS}) -if (LIBS) - target_link_libraries(mod_core ${LIBS}) -endif() +if(HAVE_LDAP) + target_link_libraries(mod_core ${LDAP_LIBRARIES}) +endif(HAVE_LDAP)