X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=634af92220bb922de0222c661e31de75d31f66c4;hp=db3337ee81e1d768b602431cdfb883b9eeb3f1de;hb=8b07343ab53d37b5340a56bde2d71ff2a3afb14a;hpb=222d0be6ffa0f6c63c3c8c5a303260b9aee10e68 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index db3337ee..634af922 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -51,13 +51,6 @@ if(HAVE_SSL) include_directories(${OPENSSL_INCLUDE_DIR}) 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}) @@ -75,6 +68,12 @@ qt5_use_modules(mod_core Core Network Script Sql) target_link_libraries(mod_core mod_common ${LIBS}) +if (Qca-qt5_FOUND) + target_sources(mod_core PRIVATE cipher.cpp keyevent.cpp) + target_link_libraries(mod_core qca-qt5) + target_compile_definitions(mod_core PUBLIC -DHAVE_QCA2) +endif() + if(HAVE_LDAP) target_link_libraries(mod_core ${LDAP_LIBRARIES}) endif(HAVE_LDAP)