diff --git a/authenticode-config.cmake b/authenticode-config.cmake index 954d77e..8a18837 100644 --- a/authenticode-config.cmake +++ b/authenticode-config.cmake @@ -1,2 +1,15 @@ +if(DEFINED ENV{OPENSSL_ROOT_DIR}) + message(STATUS "SSL Root Dir is $ENV{OPENSSL_ROOT_DIR}") +else(DEFINED ENV{OPENSSL_ROOT_DIR}) + message(ERROR "No ssl root dir!") +endif(DEFINED ENV{OPENSSL_ROOT_DIR}) + find_package(OpenSSL 3.0 REQUIRED) + +if(OPENSSL_FOUND) + message(STATUS "Found ssl, include=${OPENSSL_INCLUDE_DIR} libs=${OPENSSL_SSL_LIBRARY}, vers=${OPENSSL_VERSION +}") +else(OPENSSL_FOUND) + message(FATAL "Cannot find openssl!") +endif(OPENSSL_FOUND) include(${CMAKE_CURRENT_LIST_DIR}/authenticode-targets.cmake)