1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-08 23:24:20 +00:00
magic_enum/test/meson.build
Frankie Robertson 83ab7f4f57
Replace test option with not building tests by default (#430)
Co-authored-by: Frankie Robertson <frankie@robertson.name>
2025-10-08 22:29:29 +04:00

18 lines
433 B
Meson

catch2_dep = declare_dependency(include_directories: '3rdparty/Catch2/include')
test_files = {
'basic test': files('test.cpp'),
'flags test': files('test_flags.cpp'),
}
foreach test_name, test_src : test_files
test_exe = executable(
test_name.underscorify(),
test_src,
build_by_default: false,
dependencies: [magic_enum_dep, catch2_dep],
)
test(test_name, test_exe)
endforeach