subdir('meson/ragel') # Find Ragel
subdir('meson/clock-gettime') # Clock_gettime
subdir('meson/boost') # Boost
+subdir('meson/unit-tests') # Unit Tests
# Boost Program Options library
dep_boost_program_options = dependency('boost', modules: ['program_options'], required: true)
--- /dev/null
+# Unit Tests
+# Inputs: conf
+
+opt_unittests = get_option('unit-tests')
+dep_boost_test = dependency('boost', modules: ['unit_test_framework'], required: opt_unittests)
+conf.set10('UNIT_TESTS', dep_boost_test.found(), description: 'Whether unit tests are enabled')
+summary('Boost Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
option('gnutls', type: 'feature', value: 'auto', description: 'Build support for GnuTLS')
option('dns-over-tls', type: 'boolean', value: false, description: 'Enable DNS over TLS (requires GnuTLS or OpenSSL)')
option('ipcipher', type: 'feature', value: 'auto', description: 'Enable ipcipher support (requires libcrypto)')
+option('unit-tests', type: 'boolean', value: false, description: 'Enable building unit tests')