X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=a764608389ad6b4a69c8fd404a84b7ef7024fafa;hb=cdc6091a2e02b84a48937cda287a0769ceb8726a;hp=fa1e53eae7921d414168cb55b81edd76691e1183;hpb=077d44f36d2f5c730283ef6be839aea7dd073d56;p=quassel.git diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index fa1e53ea..a7646083 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,6 +1,87 @@ -SET(core_SRCS core.cpp coreproxy.cpp server.cpp backlog.cpp storage.cpp sqlitestorage.cpp) -SET(core_HDRS ) -SET(core_MOCS core.h coreproxy.h server.h backlog.h storage.h sqlitestorage.h) +# Builds the core module -QT4_WRAP_CPP(_MOC ${core_MOCS}) -ADD_LIBRARY(core ${_MOC} ${core_SRCS} ${core_HDRS}) +set(SOURCES + abstractsqlstorage.cpp + authenticator.cpp + core.cpp + corealiasmanager.cpp + coreapplication.cpp + coreauthhandler.cpp + corebacklogmanager.cpp + corebasichandler.cpp + corebuffersyncer.cpp + corebufferviewconfig.cpp + corebufferviewmanager.cpp + coredccconfig.cpp + corehighlightrulemanager.cpp + coreidentity.cpp + coreignorelistmanager.cpp + coreircchannel.cpp + coreirclisthelper.cpp + coreircuser.cpp + corenetwork.cpp + corenetworkconfig.cpp + coresession.cpp + coresessioneventprocessor.cpp + coresettings.cpp + coretransfer.cpp + coretransfermanager.cpp + coreuserinputhandler.cpp + coreusersettings.cpp + ctcpparser.cpp + eventstringifier.cpp + identserver.cpp + ircparser.cpp + netsplit.cpp + oidentdconfiggenerator.cpp + postgresqlstorage.cpp + sessionthread.cpp + sqlauthenticator.cpp + sqlitestorage.cpp + storage.cpp + + # needed for automoc + coreeventmanager.h +) + +set(LIBS ) + +if(HAVE_SSL) + set(SOURCES ${SOURCES} sslserver.cpp) + include_directories(${OPENSSL_INCLUDE_DIR}) +endif() + +if (QCA2_FOUND) + add_definitions(-DHAVE_QCA2) + include_directories(${QCA2_INCLUDE_DIR}) + list(APPEND SOURCES cipher.cpp) + list(APPEND LIBS ${QCA2_LIBRARIES}) +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() + +# 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) +qt_add_resources(SOURCES ${CORE_RCS}) + +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)