forked from Celebrandil/CudaSift
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
24 lines (22 loc) · 1003 Bytes
/
Copy pathmeson.build
File metadata and controls
24 lines (22 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
project('cudasift', 'cpp', 'cuda',
version: '1.0.0',
default_options: ['cpp_std=c++14'])
cuda_versions = ['13.1', '12.8', '12.6', '12.2', '11.7', '11.4', '10.2']
cuda_dep = []
foreach version: cuda_versions
cuda_dep = [dependency('cudart-' + version, required: false),
dependency('cuda-' + version, required: false)]
if(cuda_dep[0].found() and cuda_dep[1].found())
break
endif
endforeach
assert(cuda_dep[0].found() and cuda_dep[1].found(), 'cuda not found')
cudasift_lib = static_library('cudasift',
'cudaImage.cu',
'cudaSiftD.cu',
'cudaSiftH.cu',
'matching.cu',
cuda_args: ['--Wno-deprecated-declarations'],
dependencies: [cuda_dep])
cudasift_dep = declare_dependency(link_with: cudasift_lib,
include_directories: include_directories('.'))