Include precombiled version of OpenSsl 1.1.1 on Windows

This commit is contained in:
Magne Sjaastad 2024-06-24 14:39:00 +02:00
parent 16215585be
commit a45de57541

View File

@ -1027,6 +1027,36 @@ if(MSVC)
)
endif(MSVC)
# ##############################################################################
# Add OpenSSL 1.1.1 libraries The OpenSSL libraries are needed for the
# NetworkAuth module in Qt 5 Installed by adding openssl-windows in vcpkg.json
# Required to use fully specified path to the dlls, as it is not trivial to find
# the path. OpenSSL 3 is installed and used by other modules
# ##############################################################################
if(MSVC)
FetchContent_Declare(
openssl_1_1_1
URL https://github.com/CeetronSolutions/resinsight-dependencies/releases/download/2024.05/openssl_1_1_1.zip
)
FetchContent_Populate(openssl_1_1_1)
set(FILE_PATH_LIBCRYPTO_1_1
"${openssl_1_1_1_SOURCE_DIR}/libcrypto-1_1-x64.dll"
)
set(FILE_PATH_LIBOPENSSL_1_1 "${openssl_1_1_1_SOURCE_DIR}/libssl-1_1-x64.dll")
message(STATUS "FILE_PATH_LIBCRYPTO_1_1: ${FILE_PATH_LIBCRYPTO_1_1}")
message(STATUS "FILE_PATH_LIBOPENSSL_1_1: ${FILE_PATH_LIBOPENSSL_1_1}")
install(
FILES ${FILE_PATH_LIBCRYPTO_1_1} ${FILE_PATH_LIBOPENSSL_1_1}
DESTINATION ${RESINSIGHT_INSTALL_FOLDER}
OPTIONAL
)
endif() # MSVC
# ##############################################################################
# Visual Studio : Create the ruleset file to be used by Static Code Analysis
# https://stackoverflow.com/questions/75031903/how-to-enable-static-analysis-with-custom-ruleset-in-msvc-via-cmakelists-txt