blob: e6d411fb0bb309ac9902c8ff83a73933e4194121 [file] [log] [blame]
Zane Shelley248cbf82019-05-03 17:07:18 -05001project('openpower-hw-diags', 'cpp',
2 version: '0.1', meson_version: '>=0.49.0',
3 default_options: [
4 'warning_level=3',
5 'werror=true',
Ben Tyner92e39fd2020-02-05 18:11:02 -06006 'cpp_std=c++17',
7 'cpp_args=-Wno-unused-parameter'
Zane Shelley248cbf82019-05-03 17:07:18 -05008 ])
9
Ben Tyner92e39fd2020-02-05 18:11:02 -060010# libhei is available as a subproject
11subproject('libhei')
12
Ben Tyner0205f3b2020-02-24 10:24:47 -060013incdir = include_directories('.')
14
15subdir('analyzer')
Ben Tyneref320152020-01-09 10:31:23 -060016subdir('attn')
Zane Shelley248cbf82019-05-03 17:07:18 -050017
Ben Tyner0205f3b2020-02-24 10:24:47 -060018executable('openpower-hw-diags', 'main.cpp',
19 link_with : [analyzer, attn],
20 install : true)
21
Zane Shelley248cbf82019-05-03 17:07:18 -050022build_tests = get_option('tests')
23
24if not build_tests.disabled()
25 subdir('test')
26endif