Solved by Mikele in post #2 
              
              
                hey, 
first of all if you are using cmakelists you should use find_package, e.g. if libtorch is in the subfolder deps then: 
set(CMAKE_PREFIX_PATH deps/libtorch)
find_package(Torch REQUIRED)

This will define TORCH_INCLUDE_DIRS which are both of the folders you mentioned and should be included in yo…