summaryrefslogtreecommitdiff
path: root/meson.build
blob: 0e04f7563c7f064c99379996daaa241f3f39a396 (plain) (blame)
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
49
50
51
52
project(
  'zoo',
  'cpp',
  version : '0.1.0',
  license : ['GPL-3.0-only'],
  default_options : [
    'buildtype=debugoptimized',
    'cpp_args=-Weverything',
    'cpp_std=c++2a',
    'warning_level=3'
  ]
)

library_path = []
project_sources = []
project_header_files = []
project_test_sources = []
project_benchmark_sources = []

subdir('src')

zoo = executable(
  'zoo',
  main_source,
  cpp_args : ['-Wno-c++98-compat', '-Wno-deprecated-copy-dtor']
)

test('zoo', zoo)

run_target(
  'format',
  command : [
    'clang-format',
    '-i',
    '-style=LLVM',
    project_sources,
    project_header_files
  ]
)

run_target(
  'tidy',
  command : [
    'run-clang-tidy',
    '-j',
    '24',
    'files',
    '^((?!()).)*$',
    '-format',
    '-p=' + meson.build_root()
  ]
)