@krrishabh
I don’t think you should comment  ${TORCH_LIBRARIES}.
The reason that torch_cpu, torch_cuda, torch etc. can not be found is that you did not specify there location. You give the PATHS in find_package, so cmake can find the torch package, but target_link_libraries does not know the libtorch path there.
Can you try setup CMAKE_PREFIX_PATH? append libtorch’s path to it.
Here is a libtorch compile instruction,
‘https://pytorch.org/cppdocs/installing.html 16’
you can specify CMAKE_PREFIX_PATH in cmake commend line as well.