Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
#
# Read build files from sub-directories
#
-subdirs = [ 'lib', 'include', 'test' ]
+subdirs = [ 'lib', 'include']
if get_option('utils') and not platform.endswith('bsd') and platform != 'dragonfly'
subdirs += [ 'util', 'doc' ]
endif
subdirs += 'example'
endif
+if get_option('tests')
+ subdirs += 'test'
+endif
+
foreach n : subdirs
subdir(n)
endforeach
option('useroot', type : 'boolean', value : true,
description: 'Set owner and setuid bits on installed files')
+option('tests', type : 'boolean', value : true,
+ description: 'Compile the test files')
+