[WIP] dynamic linking

This commit is contained in:
Dmitriy Karpushin 2023-02-08 16:05:15 +03:00
parent 4b0a4aa5d2
commit c1bf0f8799
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ set(LIBS ${LIBS} SortFilterProxyModel)
include(${CLIENT_ROOT_DIR}/3rd/qrcodegen/qrcodegen.cmake)
include(${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/QSimpleCrypto.cmake)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
add_subdirectory(${CLIENT_ROOT_DIR}/3rd/zlib)
if(WIN32)
set(ZLIB_LIBRARY $<IF:$<CONFIG:Debug>,zlibd,zlib>)

View file

@ -12,12 +12,12 @@
namespace libssh {
Client::Client(QObject *parent) : QObject(parent)
{
ssh_init();
// ssh_init();
}
Client::~Client()
{
ssh_finalize();
// ssh_finalize();
}
ErrorCode Client::connectToHost(const ServerCredentials &credentials)