tests: only build when needed

Build the tests lazily, i.e., not before `meson test`. This helps with
build-times.
This commit is contained in:
Dirk-Jan C. Binnema
2025-08-15 21:01:05 +03:00
parent 0714873978
commit 34d3bf2e28
6 changed files with 53 additions and 6 deletions

View File

@ -67,6 +67,7 @@ if not get_option('tests').disabled()
executable('test-scm',
'mu-scm.cc',
install: false,
build_by_default: false,
dependencies: [mu_scm_dep],
cpp_args: [mu_scm_dir_arg, def_srcdir, '-DBUILD_TESTS']))
endif