-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
37 lines (27 loc) · 942 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('pa4_graph', 'cpp',
version : '0.0.1',
default_options : ['warning_level=3',
'b_coverage=true',
'cpp_std=c++14'])
# === src dependencies ===
cxxopts_proj = subproject('cxxopts')
cxxopts_dep = cxxopts_proj.get_variable('cxxopts_dep')
# === end src 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')
# === custom commands ===
run_target('cov',
command : ['./build_scripts/generate_coverage_report'])
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'])
# === end custom commands ===