project('nbt-cpp', 'cpp', version : run_command('git', 'describe', '--abbrev=0', '--tags').stdout().strip(), default_options : ['warning_level=3', 'cpp_std=c++17']) group = 'com.handtruth.mc' maintainer = 'ktlo ' modules = [ ] ###################################### module_deps = [] foreach module : modules module_deps += dependency(module, fallback : [module, 'dep']) endforeach subdir('include') subdir('src') subdir('test') dep = declare_dependency(link_with : lib, include_directories : includes) cppcheck = custom_target(meson.project_name() + '_cppcheck_internal', output : meson.project_name() + '_cppcheck.log', input : sources + test_files, command : [ 'cppcheck', '--enable=all', '-I', meson.current_source_dir() / 'include', '-I', meson.current_source_dir() / 'src', '@INPUT@', # '--project=compile_commands.json', '--output-file=@OUTPUT@' ]) run_target('cppcheck', command : ['cat', cppcheck.full_path()], depends : cppcheck)