meson/docs/markdown/snippets/cuda_dependency.md

332 B

CUDA dependency

Native support for compiling and linking against the CUDA Toolkit using the dependency function:

project('CUDA test', 'cpp', meson_version: '>= 0.53.0')
exe = executable('prog', 'prog.cc', dependencies: dependency('cuda'))

See the CUDA dependency for more information.