X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=4a19828fad1d041006453d10aef6ffba16597039;hp=e786dab1d2a80f707a40ea92bc9b40689df732c7;hb=e9e9f28438f4e11995e6b444928da1c0f8487804;hpb=d8d9cc49774faf66170790ea687c37584e5e7a51 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e786dab1..4a19828f 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -6,10 +6,6 @@ set(QT_USE_QTSQL 1) set(QT_USE_QTSCRIPT 1) include(${QT_USE_FILE}) -if (QCA2_FOUND) - include_directories(${QCA2_INCLUDE_DIR}) -endif (QCA2_FOUND) - set(SOURCES abstractsqlstorage.cpp core.cpp @@ -25,9 +21,11 @@ set(SOURCES coreignorelistmanager.cpp coreircchannel.cpp coreirclisthelper.cpp + coreircuser.cpp corenetwork.cpp corenetworkconfig.cpp coresession.cpp + coresessioneventprocessor.cpp coresettings.cpp coreuserinputhandler.cpp coreusersettings.cpp @@ -54,9 +52,11 @@ set(MOC_HDRS coreignorelistmanager.h coreircchannel.h coreirclisthelper.h + coreircuser.h corenetwork.h corenetworkconfig.h coresession.h + coresessioneventprocessor.h coreuserinputhandler.h ctcphandler.h ircserverhandler.h @@ -76,6 +76,12 @@ if(HAVE_SSL) include_directories(${OPENSSL_INCLUDE_DIR}) endif(HAVE_SSL) +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) @@ -83,3 +89,7 @@ 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)