# OpenSSL
list(APPEND CMAKE_PREFIX_PATH "F:/vcpkg/packages/openssl_x64-windows/share/openssl")
#find_package(OpenSSL REQUIRED)
#target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)
#set(ENV{PKG_CONFIG_PATH} "F:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig")
#list(APPEND ENV{PKG_CONFIG_PATH} "F:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig")
#list(APPEND CMAKE_PREFIX_PATH "F:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig")
#find_package(PkgConfig REQUIRED)
pkg_search_module(OpenSSL-libcrypto REQUIRED libcrypto)
pkg_search_module(OpenSSL-libssl REQUIRED libssl)
pkg_search_module(OpenSSL REQUIRED openssl) # libssl libcrypto
#include_directories(${OpenSSL_INCLUDE_DIRS})
message("OpenSSL_INCLUDE_DIRS >>> ${OpenSSL_INCLUDE_DIRS}")
message("OpenSSL_LIBRARIES >>> ${OpenSSL_LIBRARIES}")