1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

meson: add options and tests (#255)

This commit is contained in:
Valeri 2023-04-24 22:36:25 +03:00 committed by GitHub
parent 95c71dab42
commit fc88b4936a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 1 deletions

21
test/meson.build Normal file
View file

@ -0,0 +1,21 @@
catch2_dep = declare_dependency(
include_directories: '3rdparty/Catch2'
)
test_files = {
'basic test' : files('test.cpp'),
'flags test' : files('test_flags.cpp'),
'aliases test' : files('test_aliases.cpp'),
'containers test' : files('test_containers.cpp'),
}
foreach test_name, test_src : test_files
test_exe = executable(
test_name.underscorify(),
test_src,
dependencies: [magic_enum_dep, catch2_dep]
)
test(test_name, test_exe)
endforeach