archeus/cmake/archeus_libssh.cmake

15 lines
534 B
CMake
Raw Permalink Normal View History

set(ARCHEUS_LIBSSH_SSH_SOURCES
packages/linux/ssh/libssh/ssh.c
2024-05-25 01:34:09 -06:00
)
function(libssh_check_and_init_needed _ARCHEUS_FLAGS _ARCHEUS_SOURCES ARCHEUS_SSH_BACKEND)
2024-05-25 01:34:09 -06:00
#add matching files for the selected backends
if(${ARCHEUS_SSH_BACKEND} STREQUAL "LIBSSH")
string(APPEND ${_ARCHEUS_FLAGS} "-lssh ")
list(APPEND ${_ARCHEUS_SOURCES} ${ARCHEUS_LIBSSH_SSH_SOURCES})
2024-05-25 01:34:09 -06:00
endif()
set(${_ARCHEUS_FLAGS} ${${_ARCHEUS_FLAGS}} PARENT_SCOPE)
set(${_ARCHEUS_SOURCES} ${${_ARCHEUS_SOURCES}} PARENT_SCOPE)
2024-05-25 01:34:09 -06:00
endfunction()