aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/cuda_dependency.md
blob: 1cc9ae60feff1c0726c8c3cbac8ff07d756c60b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
## CUDA dependency

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

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

See [the CUDA dependency](Dependencies.md#cuda) for more information.