archeus/cmake/archeus_libssh.cmake

14 lines
534 B
CMake

set(ARCHEUS_LIBSSH_SSH_SOURCES
packages/linux/ssh/libssh/ssh.c
)
function(libssh_check_and_init_needed _ARCHEUS_FLAGS _ARCHEUS_SOURCES ARCHEUS_SSH_BACKEND)
#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})
endif()
set(${_ARCHEUS_FLAGS} ${${_ARCHEUS_FLAGS}} PARENT_SCOPE)
set(${_ARCHEUS_SOURCES} ${${_ARCHEUS_SOURCES}} PARENT_SCOPE)
endfunction()