the static versions of libraries generally have _static
in the name. So, for example, to link statically against cudart, you are not going to link against cudart.lib
but cudart_static.lib
. Take a look in the CUDA version that you have installed on your machine, in the libraries directory where cudart.lib
is located, and see what static libraries are available in your install.
It appears that for most of the libraries you list, static versions are not available on windows.
I don’t have any instructions for CMake usage. I generally don’t use it myself. CMake is not a NVIDIA product, and the formal support path for CUDA on (native, non-WSL) windows is via Visual Studio and Visual Studio project structure, as demonstrated in the CUDA sample codes.