mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
fixed meson build for the tests (#275)
This commit is contained in:
parent
6304edd7f6
commit
930bcf0ba2
1 changed files with 4 additions and 6 deletions
|
|
@ -1,10 +1,8 @@
|
|||
catch2_dep = declare_dependency(
|
||||
include_directories: '3rdparty/Catch2'
|
||||
)
|
||||
catch2_dep = declare_dependency(include_directories: '3rdparty/Catch2/include')
|
||||
|
||||
test_files = {
|
||||
'basic test' : files('test.cpp'),
|
||||
'flags test' : files('test_flags.cpp'),
|
||||
'basic test': files('test.cpp'),
|
||||
'flags test': files('test_flags.cpp'),
|
||||
}
|
||||
|
||||
foreach test_name, test_src : test_files
|
||||
|
|
@ -12,7 +10,7 @@ foreach test_name, test_src : test_files
|
|||
test_name.underscorify(),
|
||||
test_src,
|
||||
|
||||
dependencies: [magic_enum_dep, catch2_dep]
|
||||
dependencies: [magic_enum_dep, catch2_dep],
|
||||
)
|
||||
|
||||
test(test_name, test_exe)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue