-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
31 lines (26 loc) · 929 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
project('meson_test', 'cpp',
version : '0.0.1',
default_options : ['warning_level=3',
'b_coverage=true',
'layout=mirror',
'cpp_std=c++14'])
# === dependencies ===
hello_greet_proj = subproject('hello-greet')
hello_greet_dep = hello_greet_proj.get_variable('hello_greet_dep')
# === end dependencies ===
subdir('src')
# === test dependencies ===
gtest_proj = subproject('gtest')
gtest_dep = gtest_proj.get_variable('gtest_main_dep')
if not gtest_dep.found()
error('MESON_SKIP_TEST: gtest not installed.')
endif
# === end test dependencies ===
subdir('test')
run_target('cov',
command : './build_scripts/get_coverage_percentages')
run_target('clang-tidy',
command: ['./build_scripts/tidy.sh'])
run_target('cppcheck', command : ['cppcheck',
'--enable=all', '--std=c++14', '--error-exitcode=1', '--suppress=missingInclude',
'src', 'test'])