Hello, I could finally solve the problem.
Firstly, I would like to correct the cmake command execution from
cmake -DCMAKE_PREFIX_PATH=“C:\Users\eugene.roh\Downloads\libtorch-win-shared-with-deps-latest\libtorch”
to
cmake -DCMAKE_PREFIX_PATH=“C:\Users\eugene.roh\Downloads\libtorch-win-shared-with-deps-latest\libtorch” ..
so that I do not have to copy the CMakeLists.txt file in the build/ folder.
After executing this command, I still get the error
Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH)
Solution:
Navigate build/ folder and you will find the CMakeCache.txt file. Inside the file, search CUDNN_ROOT:PATH= and fill the path with the downloaded NVIDIA cudnn upzipped directory.

//Folder containing NVIDIA cuDNN

CUDNN_ROOT:PATH=C:\Users\eugene.roh\Desktop\cnn_cpp\cudnn-10.2-windows10-x64-v8.2.4.15\cuda


and everything works like a charm.