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

30 lines
783 B
Meson

project(
'magic_enum', ['cpp'],
default_options: ['cpp_std=c++17'],
version: '0.9.7',
)
magic_enum_include = include_directories('include')
magic_enum_args = []
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,
)
# install header and pkg-config file
install_subdir('include/magic_enum', install_dir: get_option('includedir'))
pkg = import('pkgconfig')
pkg.generate(
name: 'magic_enum',
description: 'A library that provides static reflection for enums, work with any enum type without any macro or boilerplate code.',
url: 'https://github.com/Neargye/magic_enum',
extra_cflags: magic_enum_args,
)
subdir('test')