commit 2a2f4e32bee0357b4bc0a0e35df7a2dfe32f5e42
parent c838117d6c766aaa84fce90d1578c7a4bd6ee793
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date: Sat, 19 Dec 2020 18:19:35 +0100
Add option for building tests
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
@@ -20,7 +20,9 @@ if get_option('openmp')
deps += dependency('openmp')
endif
-subdir('test')
+if get_option('test')
+ subdir('test')
+endif
# Needed to be discoverable when installed.
pkg_mod = import('pkgconfig')
diff --git a/meson_options.txt b/meson_options.txt
@@ -1,2 +1,3 @@
option('openmp', type : 'boolean', value : true, description : 'OpenMP support', yield: true)
option('precision', type : 'combo', choices : ['single', 'double'], value : 'double', description : 'Floating point precision', yield: true)
+option('test', type : 'boolean', value : false, description : 'Build test')