-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
33 lines (26 loc) · 899 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
project('load-leveller', 'c', 'cpp',
version : '2.0',
meson_version : '>=0.56.0',
default_options : [
'cpp_std=c++17',
'warning_level=3',
]
)
fmt_dep = dependency('fmt', fallback : ['fmt', 'fmt_dep'])
json_dep = dependency('nlohmann_json', fallback : ['nlohmann_json', 'nlohmann_json_dep'])
mpi_dep = dependency('mpi', language : 'cpp')
hdf5_dep = dependency('hdf5', language : 'c', required : true)
loadleveller_deps = [ fmt_dep, json_dep, mpi_dep, hdf5_dep ]
# intel mkl
mkl_dep = dependency('mkl-dynamic-ilp64-seq', required : false)
if not mkl_dep.found()
mkl_dep = dependency('mkl-static-ilp64-seq', required : (get_option('rng_backend') == 'intel_mkl'))
endif
if mkl_dep.found()
loadleveller_deps += mkl_dep
endif
should_install = not meson.is_subproject() or get_option('default_library') == 'static'
subdir('src')
if not meson.is_subproject()
subdir('test')
endif