-
Notifications
You must be signed in to change notification settings - Fork 183
/
meson.build
48 lines (44 loc) · 823 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
38
39
40
41
42
43
44
45
46
47
48
samples = [
'asserts.c',
'description.c',
'fixtures.c',
'log.c',
'more-suites.c',
'parameterized.c',
'redirect.c',
'report.c',
'signal.c',
'simple.c',
'skip.c',
'suites.c',
'timeout.c',
]
if get_option('theories').enabled()
samples += ['theories.c']
endif
if has_cxx
samples += [
'asserts.cc',
'description.cc',
'fixtures.cc',
'log.cc',
'more-suites.cc',
'parameterized.cc',
'redirect.cc',
'report.cc',
'signal.cc',
'simple.cc',
'skip.cc',
'suites.cc',
]
if get_option('theories').enabled()
samples += ['theories.cc']
endif
endif
foreach sample : samples
e = executable(sample + '.bin', sample,
include_directories: [criterion_api],
dependencies: [libm],
link_with: libcriterion.get_shared_lib())
test('sample / ' + sample, e, args: '--always-succeed')
endforeach