[WIP] dynamic linking
This commit is contained in:
parent
4b0a4aa5d2
commit
c1bf0f8799
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ set(LIBS ${LIBS} SortFilterProxyModel)
|
||||||
include(${CLIENT_ROOT_DIR}/3rd/qrcodegen/qrcodegen.cmake)
|
include(${CLIENT_ROOT_DIR}/3rd/qrcodegen/qrcodegen.cmake)
|
||||||
include(${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/QSimpleCrypto.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)
|
add_subdirectory(${CLIENT_ROOT_DIR}/3rd/zlib)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(ZLIB_LIBRARY $<IF:$<CONFIG:Debug>,zlibd,zlib>)
|
set(ZLIB_LIBRARY $<IF:$<CONFIG:Debug>,zlibd,zlib>)
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,12 @@
|
||||||
namespace libssh {
|
namespace libssh {
|
||||||
Client::Client(QObject *parent) : QObject(parent)
|
Client::Client(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
ssh_init();
|
// ssh_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
Client::~Client()
|
Client::~Client()
|
||||||
{
|
{
|
||||||
ssh_finalize();
|
// ssh_finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorCode Client::connectToHost(const ServerCredentials &credentials)
|
ErrorCode Client::connectToHost(const ServerCredentials &credentials)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue