cross compile to win64:
cmake -DCMAKE_PREFIX_PATH="/work/libtorch_win;/work/opencv-3.4.5/build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/work/mingw-w64-x86_64.cmake -DTORCH_LIBRARY="/work/libtorch_win/lib/torch.dll" -DC10_LIBRARY="/work/libtorch_win/lib/c10.dll" ..