Thanks Pu Jiachen. I had to modify that a little for my particular case to work. What ended up working for me was
cmake -DCMAKE_PREFIX_PATH=“D:/path/to/libtorch” -Dpybind11_DIR=“D:/path/to/pybind11/share/cmake/pybind11” … -G “Visual Studio 15 2017 Win64”