File: FindLibSSH.cmake

package info (click to toggle)
cgal 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (39 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# - Try to find the LibSSH libraries
# This module defines:
#  LIBSSH_FOUND             - system has LibSSH lib
#  LIBSSH_INCLUDE_DIR       - the LibSSH include directory
#  LIBSSH_LIBRARIES_DIR     - directory where the LibSSH libraries are located
#  LIBSSH_LIBRARIES         - Link these to use LibSSH


include(FindPackageHandleStandardArgs)
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_GeneratorSpecificSettings.cmake)

if(LIBSSH_INCLUDE_DIR)
  set(LIBSSH_in_cache TRUE)
else()
  set(LIBSSH_in_cache FALSE)
endif()
if(NOT LIBSSH_LIBRARIES)
  set(LIBSSH_in_cache FALSE)
endif()

# Is it already configured?
if( NOT LIBSSH_in_cache )

  find_path(LIBSSH_INCLUDE_DIR
    NAMES "libssh/libssh.h"
    )

  find_library(LIBSSH_LIBRARIES NAMES ssh libssh
    HINTS "/usr/lib"
    "usr/lib/x86_64-linux-gnu"
    PATH_SUFFIXES lib
    DOC "Path to the LIBSSH library"
    )
endif()

SET(LIBSSH_FOUND TRUE)
if( NOT LIBSSH_LIBRARIES OR NOT LIBSSH_INCLUDE_DIR)
  SET(LIBSSH_FOUND FALSE)
endif()