Merge pull request #2693 from Ali-Amir/u/ali/optional-meson-unit-tests

Add option to disable building unit tests in Meson build file.
This commit is contained in:
Martin Hořeňovský 2023-05-27 12:00:52 +02:00 committed by GitHub
commit 8008625d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -14,4 +14,6 @@ project(
) )
subdir('src/catch2') subdir('src/catch2')
if get_option('tests')
subdir('tests') subdir('tests')
endif

1
meson_options.txt Normal file
View File

@ -0,0 +1 @@
option('tests', type: 'boolean', value: true, description: 'Build the unit tests')