Conversion from CMake to wmake for Libtorch's compilation

LOADING A PYTORCH MODEL IN C++

In this link following is mentioned for creating the script for compiling C++ program for inference with Libtorch.

While CMake is not a requirement for depending on LibTorch, it is the recommended approach and will be well supported into the future.

I want to ask if CMake isn’t necessarily a requirement for depending on LibTorch then, how can I convert this thing in wmake? The thing is, I am trying to integrate a pytorch’s trained model with an OpenFoam solver and since OpenFoam is based on wmake I want to convert cmake into wmake.
Any Suggestions?

Thank you :slight_smile: