summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/FindCRYPTO.cmake
blob: 453c6516e07113767615be2dc1bd8247c8d23ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Try to find libcrypto.
#

# Try to find the header
find_path(CRYPTO_INCLUDE_DIR openssl/crypto.h)

# Try to find the library
find_library(CRYPTO_LIBRARY crypto)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CRYPTO
  DEFAULT_MSG
  CRYPTO_INCLUDE_DIR
  CRYPTO_LIBRARY
)

mark_as_advanced(
  CRYPTO_INCLUDE_DIR
  CRYPTO_LIBRARY
)

set(CRYPTO_INCLUDE_DIRS ${CRYPTO_INCLUDE_DIR})
set(CRYPTO_LIBRARIES ${CRYPTO_LIBRARY})