subdir('tools')
-subdir('tests')
+build_tests = not get_option('tests').disabled()
+if build_tests
+ subdir('tests')
+endif
subdir('examples')
'Use -Werror': cc_flags.contains('-Werror'),
'Warning Flags': supported_cc_flags,
'docs': gen_docs,
+ 'tests': build_tests,
'DTrace': conf.has('WITH_DTRACE_PROBES'),
'firewalld': conf.has('WITH_FIREWALLD'),
'firewalld-zone': conf.has('WITH_FIREWALLD_ZONE'),
option('git_werror', type: 'feature', value: 'auto', description: 'use -Werror if building from GIT')
option('rpath', type: 'feature', value: 'auto', description: 'whether to include rpath information in installed binaries and libraries')
option('docs', type: 'feature', value: 'auto', description: 'whether to generate documentation')
+option('tests', type: 'feature', value: 'auto', description: 'whether to build tests')
# build dependencies options