summaryrefslogtreecommitdiff
path: root/cmake/FindPolarSSL.cmake
blob: b9d04ef853189255fff8c77a29c58adbf47b3e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# - Try to find the PolarSSL SSL Library
# The module will set the following variables
#
#  POLARSSL_FOUND - System has popt
#  POLARSSL_INCLUDE_DIR - The popt include directory
#  POLARSSL_LIBRARIES - The libraries needed to use popt

# Find the include directories
FIND_PATH(POLARSSL_INCLUDE_DIR
    NAMES polarssl/ssl.h
    DOC "Path containing the polarssl/ssl.h include file"
    )

FIND_LIBRARY(POLARSSL_LIBRARIES
    NAMES polarssl
    DOC "polarssl library path"
    )

include(FindPackageHandleStandardArgs)

FIND_PACKAGE_HANDLE_STANDARD_ARGS(POLARSSL
    REQUIRED_VARS POLARSSL_INCLUDE_DIR POLARSSL_LIBRARIES
  )