xref: /openbmc/openpower-hw-diags/meson.build (revision cf0e074e)
1project('openpower-hw-diags', 'cpp',
2        version: '0.1', meson_version: '>=0.49.0',
3        default_options: [
4          'warning_level=3',
5          'werror=true',
6          'cpp_std=c++17',
7          'cpp_args=-Wno-unused-parameter'
8        ])
9
10# libhei is available as a subproject
11subproject('libhei')
12
13incdir = include_directories('.')
14
15subdir('analyzer')
16subdir('attn')
17
18executable('openpower-hw-diags', 'main.cpp',
19            link_with : [analyzer, attn],
20            install : true)
21
22build_tests = get_option('tests')
23
24if not build_tests.disabled()
25  subdir('test')
26endif
27