add internal OpenSSL option to cmake

This commit is contained in:
Alex Fabijanic
2017-10-03 22:31:29 -05:00
parent c4f0727bc7
commit 8da67bee26
6 changed files with 106 additions and 50 deletions

View File

@@ -0,0 +1,7 @@
if(MSVC AND USING_INTERNAL_OPENSSL)
add_custom_command(TARGET "${LIBNAME}" PRE_BUILD
COMMAND xcopy /Y /C ${OPENSSL_ROOT_DIR}\\win${OPENSSL_WIN_PLATFORM_BITS}\\${POCO_WIN_LIB_DIR}\\$(Configuration)\\*.dll ${WIN_BIN_OUTPUT_DIR}\\$(Configuration)\\*
COMMAND xcopy /Y /C ${OPENSSL_ROOT_DIR}\\win${OPENSSL_WIN_PLATFORM_BITS}\\${POCO_WIN_LIB_DIR}\\$(Configuration)\\*.lib ${WIN_LIB_OUTPUT_DIR}\\$(Configuration)\\*
COMMAND xcopy /Y /C ${OPENSSL_ROOT_DIR}\\win${OPENSSL_WIN_PLATFORM_BITS}\\${POCO_WIN_LIB_DIR}\\$(Configuration)\\*.pdb ${WIN_BIN_OUTPUT_DIR}\\$(Configuration)\\*
COMMENT "Copying OpenSSL binaries" VERBATIM)
endif(MSVC AND USING_INTERNAL_OPENSSL)