sources from https://github.com/bagder/curl/releases/download/curl-7_46_0/curl-7.46.0.tar.gz

extract openssl-1.0.2e-win32-vc140.7z and zlib-1.2.8-win32-vc140.7z from depends and place include and lib into a folder
e.g c:\code\kdeps
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=C:\CODE\KDEPS -DBUILD_CURL_EXE=OFF -DBUILD_CURL_TESTS=OFF -G "Visual Studio 14" ..
undef USE_WINDOWS_SSPI and USE_SCHANNEL in curl_config.h
change libcurl to static library, enable ltgc for relwithdebinfo config
change runtime to MT(d)
set program database filename to $(IntDir)$(TargetName).pdb
build relwithdebinfo and debug
copy files