It works flawlessly, but now I need to be able to build it from source using CMake in order to provide it as a dependency for another project.
Is there a documentation explaining how to do that? All docs that I have found for building from source use the setup.py approach and I am not sure that this produces an installable lib which can be consumed from CMake projects.
Can you please clarify what you did? why ccmake and not cmake? why …/ and not … ?
if interested in the c++ libtorch (includes, libs and share stuff) what flags apply?