mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
meson: add option to build tests, default to false
This commit is contained in:
19
meson.build
19
meson.build
@@ -83,16 +83,17 @@ pkg.generate(
|
||||
description : 'OpenGL Mathematics (glm) for C'
|
||||
)
|
||||
|
||||
if get_option('build_tests') == true
|
||||
|
||||
test_src = files(
|
||||
'test/runner.c',
|
||||
'test/src/test_euler.c',
|
||||
'test/src/test_bezier.c',
|
||||
'test/src/test_cam.c',
|
||||
'test/src/test_struct.c',
|
||||
'test/src/test_clamp.c',
|
||||
'test/src/test_common.c',
|
||||
'test/src/tests.c'
|
||||
'test/runner.c',
|
||||
'test/src/test_euler.c',
|
||||
'test/src/test_bezier.c',
|
||||
'test/src/test_cam.c',
|
||||
'test/src/test_struct.c',
|
||||
'test/src/test_clamp.c',
|
||||
'test/src/test_common.c',
|
||||
'test/src/tests.c'
|
||||
)
|
||||
|
||||
test_exe = executable('tests',
|
||||
@@ -102,3 +103,5 @@ test_exe = executable('tests',
|
||||
)
|
||||
|
||||
test('cglm.tests', test_exe)
|
||||
|
||||
endif
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@@ -0,0 +1 @@
|
||||
option('build_tests', type : 'boolean', value : false, description : 'Build tests')
|
Reference in New Issue
Block a user