As official CUDA samples only support Visual Studio for Windows OS, this is a in-house project which try to build these samples with CMake on Windows OS.
- Install Visual Studio(at least 2019), NV's CUDA samples(10.1+) and CMake tool(3.14+), i.e. anaconda, MSYS2.
- Modify the CMakeLists.txt to set correct root of CUDA samples and libraries.
- Run command
mkdir build
cd build
cmake ..
cmake --build .
Currently only limited cases were added.