-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
37 lines (29 loc) · 976 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
34
35
36
37
project(
'matter',
'cpp',
license: 'MIT',
meson_version: '>=0.48.0',
default_options: [
'cpp_std=c++2a',
'warning_level=3',
],
)
matter_inc = include_directories('include')
hana_proj = subproject('hana')
range_v3_dep = dependency('range', fallback: ['range-v3', 'range_dep'])
hana_dep = hana_proj.get_variable('hana_dep')
hera_dep = dependency('hera', method: 'cmake', modules: ['hera::hera'])
nameof_dep = dependency('nameof', method: 'cmake', modules: ['nameof::nameof'])
if get_option('build_tests')
catch2_dep = dependency('catch2', fallback: ['catch2', 'catch2_dep'])
endif
if get_option('build_tests') and get_option('build_benchmarks')
google_benchmark_dep = dependency('benchmark', fallback: ['google-benchmark', 'google_benchmark_dep'])
endif
matter_dep = declare_dependency(
include_directories: matter_inc,
dependencies: [range_v3_dep, hana_dep, hera_dep, nameof_dep],
)
if get_option('build_tests')
subdir('test')
endif