meson.build 709 Bytes
Newer Older
Martin Kröning's avatar
Martin Kröning committed
1
project('pi2-view', ['cpp', 'c'],
Martin Kröning's avatar
Martin Kröning committed
2
    license: 'LGPL3',
3
    meson_version: '>=0.45.1',
4
    version: '0.1',
5
    default_options : ['warning_level=3', 'werror=true', 'cpp_std=c++17', 'c_std=c11']
Martin Kröning's avatar
Martin Kröning committed
6 7
)

8 9
add_global_arguments('-Wno-unknown-pragmas', language : 'cpp')

Martin Kröning's avatar
Martin Kröning committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
microsoft_gsl_proj = subproject('microsoft-gsl')
microsoft_gsl_dep = microsoft_gsl_proj.get_variable('microsoft_gsl_dep')

subdir('pi2-view')
subdir('pi2-demo')

clangtidy = find_program('clang-tidy', required: false)
if clangtidy.found()
    run_target('tidy',
        command : 'scripts/tidy.sh')
endif

iwyu_tool = find_program('iwyu_tool', required: false)
if iwyu_tool.found()
    run_target('iwyu',
        command : 'scripts/iwyu.sh')
endif