test: add build configs for catch2

This commit is contained in:
Aleksei Bavshin
2021-08-13 18:33:24 -07:00
parent 1f16d7955d
commit 6eba62f060
5 changed files with 47 additions and 0 deletions

View File

@ -360,6 +360,15 @@ if scdoc.found()
endforeach
endif
catch2 = dependency(
'catch2',
fallback: ['catch2', 'catch2_dep'],
required: get_option('tests'),
)
if catch2.found()
subdir('test')
endif
clangtidy = find_program('clang-tidy', required: false)
if clangtidy.found()