xref: /freebsd/contrib/tcpdump/cmake/Modules/FindCRYPTO.cmake (revision 9247238cc4b8835892a47701136b0fd073f8d67c)
1#
2# Try to find libcrypto.
3#
4
5# Try to find the header
6find_path(CRYPTO_INCLUDE_DIR openssl/crypto.h)
7
8# Try to find the library
9find_library(CRYPTO_LIBRARY crypto)
10
11include(FindPackageHandleStandardArgs)
12find_package_handle_standard_args(CRYPTO
13  DEFAULT_MSG
14  CRYPTO_INCLUDE_DIR
15  CRYPTO_LIBRARY
16)
17
18mark_as_advanced(
19  CRYPTO_INCLUDE_DIR
20  CRYPTO_LIBRARY
21)
22
23set(CRYPTO_INCLUDE_DIRS ${CRYPTO_INCLUDE_DIR})
24set(CRYPTO_LIBRARIES ${CRYPTO_LIBRARY})
25