How to build libtorch with cmake

I am trying to build libtorch in order to get what comes in this zip https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip , mainly libs, headers and a FindCMake in order to be able to link to the libraries when building my c++ inference code.
Until now I couldn’t find any tutorial or example on how to do that, I am not interested in running python scripts that build everything, I just want to create a build directory and run cmake with some flags, then make. I’ve seen it done in some other questons but details were lacking.

4 Likes

Hi,
I am interested in it, but i am confused, and no idea how to do it. Have you get advanced about it ?