1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +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

View file

@ -6,6 +6,21 @@ project(
magic_enum_include = include_directories('include')
magic_enum_args = []
if get_option('noascii')
magic_enum_args += '-DMAGIC_ENUM_ENABLE_NONASCII'
endif
if get_option('hash')
magic_enum_args += '-DMAGIC_ENUM_ENABLE_HASH'
endif
magic_enum_dep = declare_dependency(
include_directories: magic_enum_include,
)
compile_args: magic_enum_args,
)
if get_option('test')
subdir('test')
endif