What build steps are needed to reproduce libtorch release build?

Hello, I am interested in building libtorch, specifically in a way that reproduces the binaries that are packaged into this release:
https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-2.1.1%2Bcpu.zip

Does anyone have a build recipe that they can share?

Thanks!
Ryan