X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=db3337ee81e1d768b602431cdfb883b9eeb3f1de;hp=25e14884add19d155d4b595635f789937618a0ce;hb=0216d4a650c02155b5bcd517567209f674d8a120;hpb=ce26c3770b254362c7bd1e094ba8f8bf22133653 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 25e14884..db3337ee 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 @@ -28,11 +30,13 @@ set(SOURCES coreusersettings.cpp ctcpparser.cpp eventstringifier.cpp + identserver.cpp ircparser.cpp netsplit.cpp oidentdconfiggenerator.cpp postgresqlstorage.cpp sessionthread.cpp + sqlauthenticator.cpp sqlitestorage.cpp storage.cpp @@ -40,25 +44,37 @@ set(SOURCES coreeventmanager.h ) +set(LIBS ) + if(HAVE_SSL) set(SOURCES ${SOURCES} sslserver.cpp) include_directories(${OPENSSL_INCLUDE_DIR}) -endif(HAVE_SSL) +endif() + +if (QCA2-QT5_FOUND) + add_definitions(-DHAVE_QCA2) + include_directories(${QCA2-QT5_INCLUDE_DIR}) + list(APPEND SOURCES cipher.cpp) + list(APPEND LIBS ${QCA2-QT5_LIBRARIES}) +endif() -if(HAVE_QCA2) - set(SOURCES ${SOURCES} cipher.cpp) - include_directories(${QCA2_INCLUDE_DIR}) -endif(HAVE_QCA2) +# 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} core/sql.qrc PARENT_SCOPE) +set(CORE_RCS ${CORE_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/sql.qrc) +qt5_add_resources(SOURCES ${CORE_RCS}) add_library(mod_core STATIC ${SOURCES}) -qt_use_modules(mod_core Core Network Script Sql) +qt5_use_modules(mod_core Core Network Script Sql) -add_dependencies(mod_core mod_common) +target_link_libraries(mod_core mod_common ${LIBS}) -if(HAVE_QCA2) - target_link_libraries(mod_core ${QCA2_LIBRARIES}) -endif(HAVE_QCA2) +if(HAVE_LDAP) + target_link_libraries(mod_core ${LDAP_LIBRARIES}) +endif(HAVE_LDAP)