You don’t need to set the torch include dirs yourself. If cmake finds the torch package then its configuration will set those for you.
However, if this is all of your cmake code, then you’re lacking an include and a linking of the torch directories:
target_include_directories(example-app PUBLIC ${TORCH_INCLUDE_DIRS})
target_link_libraries(example-app PUBLIC ${TORCH_LIBRARIES})