feat(stroid): added command line and tests

This commit is contained in:
2026-01-30 13:21:43 -05:00
parent 58f59516ec
commit ce69b91fde
30 changed files with 975 additions and 46 deletions

View File

@@ -1 +1,27 @@
subdir('stroid_sandbox')
gtest_dep = dependency('gtest', main: true, required : true)
gtest_main = dependency('gtest_main', required: true)
gtest_nomain_dep = dependency('gtest', main: false, required : true)
# Test files for const
test_sources = [
'stroidTest.cpp'
]
foreach test_file : test_sources
exe_name = test_file.split('.')[0]
test_exe = executable(
exe_name,
test_file,
dependencies: [
stroid_dep,
gtest_dep,
gtest_main
],
)
test(
exe_name,
test_exe,
env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()])
endforeach