diff options
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..0e04f75 --- /dev/null +++ b/meson.build @@ -0,0 +1,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() + ] +) |