X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=fe99f34df414589f1665de7d5bca964923459a44;hp=140071024ee28940f929ee7d10662f11ecf80243;hb=283fdb2c49e5efa1d497d8c3e6f624f86d008ff8;hpb=00e5123cd8e781305a1558078a0d6224ddd2f51b diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 14007102..fe99f34d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -8,58 +8,94 @@ include(${QT_USE_FILE}) set(SOURCES abstractsqlstorage.cpp - basichandler.cpp core.cpp + corealiasmanager.cpp + coreapplication.cpp corebacklogmanager.cpp + corebasichandler.cpp + corebuffersyncer.cpp corebufferviewconfig.cpp corebufferviewmanager.cpp + corecoreinfo.cpp + coreidentity.cpp + coreignorelistmanager.cpp + coreircchannel.cpp coreirclisthelper.cpp + coreircuser.cpp corenetwork.cpp + corenetworkconfig.cpp coresession.cpp + coresessioneventprocessor.cpp coresettings.cpp + coreuserinputhandler.cpp coreusersettings.cpp ctcphandler.cpp + ctcpparser.cpp + eventstringifier.cpp + ircparser.cpp ircserverhandler.cpp - networkconnection.cpp + netsplit.cpp + postgresqlstorage.cpp sessionthread.cpp sqlitestorage.cpp - storage.cpp - userinputhandler.cpp) + storage.cpp) set(MOC_HDRS abstractsqlstorage.h - basichandler.h core.h + corealiasmanager.h + coreapplication.h corebacklogmanager.h + corebasichandler.h + corebuffersyncer.h corebufferviewconfig.h corebufferviewmanager.h + corecoreinfo.h + coreidentity.h + coreignorelistmanager.h + coreircchannel.h coreirclisthelper.h + coreircuser.h corenetwork.h + corenetworkconfig.h coresession.h + coresessioneventprocessor.h + coreuserinputhandler.h ctcphandler.h + ctcpparser.h + eventstringifier.h + ircparser.h ircserverhandler.h - networkconnection.h + netsplit.h + postgresqlstorage.h sqlitestorage.h storage.h - sessionthread.h - userinputhandler.h) + sessionthread.h) set(HEADERS coresettings.h coreusersettings.h) -# QT_DEFINITIONS actually does not work, stuff gets included always. -# Funny enough that does not seem to be harmful, but we should still find a way to figure out -# if we have openssl in Qt... -if(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL") +if(HAVE_SSL) set(SOURCES ${SOURCES} sslserver.cpp) set(MOC_HDRS ${MOC_HDRS} sslserver.h) include_directories(${OPENSSL_INCLUDE_DIR}) -endif(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL") +endif(HAVE_SSL) -QT4_WRAP_CPP(MOC ${MOC_HDRS}) +if(HAVE_QCA2) + set(SOURCES ${SOURCES} cipher.cpp) + set(HEADERS ${HEADERS} cipher.h) + include_directories(${QCA2_INCLUDE_DIR}) +endif(HAVE_QCA2) + +qt4_wrap_cpp(MOC ${MOC_HDRS}) +set(CORE_RCS ${CORE_RCS} core/sql.qrc PARENT_SCOPE) include_directories(${CMAKE_SOURCE_DIR}/src/common) add_library(mod_core STATIC ${SOURCES} ${MOC} ${HEADERS}) add_dependencies(mod_core mod_common) + +if(HAVE_QCA2) + target_link_libraries(mod_core ${QCA2_LIBRARIES}) +endif(HAVE_QCA2)