Files
Library/src/Crypto/module.cmake
T

22 lines
594 B
CMake

set(_void_crypto_ext_deps "")
set(_void_crypto_has_openssl 0)
if(NOT CMAKE_DISABLE_FIND_PACKAGE_OpenSSL)
if(NOT TARGET OpenSSL::Crypto)
find_package(OpenSSL QUIET)
endif()
if(TARGET OpenSSL::Crypto)
list(APPEND _void_crypto_ext_deps OpenSSL::Crypto)
set(_void_crypto_has_openssl 1)
endif()
endif()
void_add_module(Crypto
INTERNAL_DEPS Functional
EXTERNAL_DEPS ${_void_crypto_ext_deps}
EXCLUDE_HEADERS
Void/Crypto/AsyncHash.hpp
)
target_compile_definitions(Void_Crypto PUBLIC
VOID_CRYPTO_HAS_OPENSSL=${_void_crypto_has_openssl}
)