messeing around with libssh

This commit is contained in:
herbglitch 2024-05-25 01:34:09 -06:00
parent 7acd21695f
commit 5fd1c5b2a5
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,14 @@
set(ARCHEUS_STD_LIBSSH_SSH_SOURCES
packages/networking/libssh/ssh.c
)
function(libssh_check_and_init_needed _ARCHEUS_STD_FLAGS _ARCHEUS_STD_SOURCES ARCHEUS_STD_SSH_BACKEND)
#add matching files for the selected backends
if(${ARCHEUS_STD_SSH_BACKEND} STREQUAL "LIBSSH")
string(APPEND ${_ARCHEUS_STD_FLAGS} "-lssh ")
list(APPEND ${_ARCHEUS_STD_SOURCES} ${ARCHEUS_STD_LIBSSH_SSH_SOURCES})
endif()
set(${_ARCHEUS_STD_FLAGS} ${${_ARCHEUS_STD_FLAGS}} PARENT_SCOPE)
set(${_ARCHEUS_STD_SOURCES} ${${_ARCHEUS_STD_SOURCES}} PARENT_SCOPE)
endfunction()