1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- message(STATUS "***** Find ssh2 Library *****")
- unset(ssh2_INCLUDE_DIR CACHE)
- unset(INCLUDE_PATH)
- find_path(INCLUDE_PATH
- NAMES libssh2.h
- PATHS ${CMAKE_CURRENT_LIST_DIR}/include
- NO_DEFAULT_PATH
- )
- list(APPEND ssh2_INCLUDE_DIR ${INCLUDE_PATH})
- if(CMAKE_SYSTEM_NAME MATCHES "Windows")
- message(WARNING "Windows is not supported")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
- list(APPEND ssh2_LIBRARY ${CMAKE_CURRENT_LIST_DIR}/lib/linux/libssh2.so)
- list(APPEND ssh2_STATIC_LIBRARY ${CMAKE_CURRENT_LIST_DIR}/lib/linux/libssh2.a)
- endif()
- if(ssh2_INCLUDE_DIR AND ssh2_LIBRARY AND ssh2_STATIC_LIBRARY)
- set(ssh2_FOUND TRUE)
- set(ssh2_VERSION "1.11.1")
- else()
- set(ssh2_FOUND FALSE)
- endif()
- message(STATUS "include : ssh2_INCLUDE_DIR")
- message(STATUS "Library : ssh2_LIBRARY")
- message(STATUS "Static Library : ssh2_STATIC_LIBRARY")
- message(STATUS "---------------------------------")
|