install libssl for windows

This commit is contained in:
Guobang Bi 2020-03-08 17:28:04 +08:00
parent 4865885f31
commit 5c8606a2f3
No known key found for this signature in database
GPG Key ID: D850BE43BE29325B

View File

@ -230,6 +230,11 @@ if(WIN32)
DESTINATION lang
)
find_package(OpenSSL REQUIRED)
install(FILES OpenSSL::SSL OpenSSL::Crypto
DESTINATION .
)
set(prefix "${PROJECT_NAME}.exe")
set(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${prefix}")