FindSSH2.cmake 826 B

12345678910111213141516171819202122232425262728293031
  1. # - Try to find the ssh2 libssh2 library
  2. # Once done this will define
  3. #
  4. # SSH2_FOUND - system has the SSH2 libssh2 library
  5. # SSH2_INCLUDE_DIR - the SSH2 libssh2 include directory
  6. # SSH2_LIBRARIES - The libraries needed to use SSH2 libssh2
  7. # only look in default directories
  8. find_path(
  9. SSH2_INCLUDE_DIR
  10. NAMES libssh2.h
  11. DOC "ssh2 include dir"
  12. )
  13. find_library(
  14. SSH2_LIBRARY
  15. NAMES ssh2 libssh2
  16. DOC "ssh2 library"
  17. )
  18. set(SSH2_INCLUDE_DIRS ${SSH2_INCLUDE_DIR})
  19. set(SSH2_LIBRARIES ${SSH2_LIBRARY})
  20. # handle the QUIETLY and REQUIRED arguments and set CURL_FOUND to TRUE
  21. # if all listed variables are TRUE, hide their existence from configuration view
  22. include(FindPackageHandleStandardArgs)
  23. find_package_handle_standard_args(SSH2 DEFAULT_MSG
  24. SSH2_LIBRARY SSH2_INCLUDE_DIR)
  25. mark_as_advanced (SSH2_INCLUDE_DIR SSH2_LIBRARY)