X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=e33723553b83f22279aa4dca30128b67bc27ab3f;hp=25e14884add19d155d4b595635f789937618a0ce;hb=73b7e9b2e6b0742e344238c6ebac05919efd914b;hpb=ce26c3770b254362c7bd1e094ba8f8bf22133653 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 25e14884..e3372355 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -40,15 +40,19 @@ set(SOURCES coreeventmanager.h ) +set(LIBS ) + if(HAVE_SSL) set(SOURCES ${SOURCES} sslserver.cpp) include_directories(${OPENSSL_INCLUDE_DIR}) endif(HAVE_SSL) -if(HAVE_QCA2) - set(SOURCES ${SOURCES} cipher.cpp) - include_directories(${QCA2_INCLUDE_DIR}) -endif(HAVE_QCA2) +if (QCA2_FOUND) + add_definitions(-DHAVE_QCA2) + include_directories(${QCA2_INCLUDE_DIR}) + list(APPEND SOURCES cipher.cpp) + list(APPEND LIBS ${QCA2_LIBRARIES}) +endif() include_directories(${CMAKE_SOURCE_DIR}/src/common) @@ -59,6 +63,6 @@ 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) +if (LIBS) + target_link_libraries(mod_core ${LIBS}) +endif()