Canonical way to include libcuda.a (cuda.lib under Windows) when using first-class CUDA support
libcuda.a/cuda.lib contains the CUDA driver API library, and is currently not added to a target that uses CUDA sources by default, at least on the Visual Studio generator when first-class CUDA support (project(... CUDA CXX ..)
) is used. I currently include it by manually adding it via target_link_libraries(my_cuda_app PUBLIC cuda)
. Is this the canonical way of including libcuda.a/cuda.lib?