cmake/FindLibSSH2.cmake
raw| 1 | # LIBSSH2_FOUND - system has the libssh2 library |
| 2 | # LIBSSH2_INCLUDE_DIR - the libssh2 include directory |
| 3 | # LIBSSH2_LIBRARY - the libssh2 library name |
| 4 | |
| 5 | find_path(LIBSSH2_INCLUDE_DIR libssh2.h) |
| 6 | |
| 7 | find_library(LIBSSH2_LIBRARY NAMES ssh2 libssh2) |
| 8 | |
| 9 | include(FindPackageHandleStandardArgs) |
| 10 | find_package_handle_standard_args(LibSSH2 |
| 11 | REQUIRED_VARS LIBSSH2_LIBRARY LIBSSH2_INCLUDE_DIR) |
| 12 | |
| 13 | mark_as_advanced(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY) |