X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=39a7ceb0484a4981fc111aa57993f3a0fd6f986b;hp=25e14884add19d155d4b595635f789937618a0ce;hb=be04b68a0f10891b81c07cdda204a9abc0ac56a7;hpb=5b43f2776fa53bfe15a5b3b4398dfe3e931d5802 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 25e14884..39a7ceb0 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -12,6 +12,7 @@ set(SOURCES corebufferviewconfig.cpp corebufferviewmanager.cpp corecoreinfo.cpp + coredccconfig.cpp coreidentity.cpp coreignorelistmanager.cpp coreircchannel.cpp @@ -40,25 +41,33 @@ 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_FOUND) + add_definitions(-DHAVE_QCA2) + include_directories(${QCA2_INCLUDE_DIR}) + list(APPEND SOURCES cipher.cpp) + list(APPEND LIBS ${QCA2_LIBRARIES}) +endif() -if(HAVE_QCA2) - set(SOURCES ${SOURCES} cipher.cpp) - include_directories(${QCA2_INCLUDE_DIR}) -endif(HAVE_QCA2) +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() 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) +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) - -if(HAVE_QCA2) - target_link_libraries(mod_core ${QCA2_LIBRARIES}) -endif(HAVE_QCA2) +target_link_libraries(mod_core mod_common ${LIBS})