Windows AMD64: cd tomcrypt if [[ ! -d out/win32_amd64 ]]; then mkdir -p out/win32_amd64 fi cd out/win32_amd64 cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static -DCMAKE_C_FLAGS="-DLTM_DESC -DUSE_LTM -I../../../tommath/include/" MSBuild.exe //p:Configuration=Release //p:Platform=x64 libtomcrypt.vcxproj Notice: THe MSBuild step has to been executed twice because it does no find the headers in the first step!