mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Deployment : Add SSL binaries to installation on Windows
Use cmake macro to find ssl library, and manipulate include path to find path of DLLs
This commit is contained in:
parent
3ac518da4c
commit
1e748d09f6
@ -667,6 +667,18 @@ if (RESINSIGHT_PRIVATE_INSTALL)
|
||||
endforeach(dllname ${GRPC_DLL_NAMES})
|
||||
endif()
|
||||
|
||||
# OpenSSL
|
||||
find_package(OpenSSL)
|
||||
if (OPENSSL_FOUND)
|
||||
message("OpenSSL include dir: ${OPENSSL_INCLUDE_DIR}")
|
||||
SET(OPENSSL_BIN_DIR ${OPENSSL_INCLUDE_DIR})
|
||||
string(REPLACE "include" "bin" OPENSSL_BIN_DIR ${OPENSSL_BIN_DIR})
|
||||
message("OpenSSL binary dir: ${OPENSSL_BIN_DIR}")
|
||||
|
||||
install(FILES ${OPENSSL_BIN_DIR}/libeay32.dll DESTINATION ${RESINSIGHT_INSTALL_FOLDER})
|
||||
install(FILES ${OPENSSL_BIN_DIR}/ssleay32.dll DESTINATION ${RESINSIGHT_INSTALL_FOLDER})
|
||||
endif(OPENSSL_FOUND)
|
||||
|
||||
# CRT
|
||||
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP ON)
|
||||
set(CMAKE_INSTALL_OPENMP_LIBRARIES ON)
|
||||
|
Loading…
Reference in New Issue
Block a user