-
Notifications
You must be signed in to change notification settings - Fork 454
/
Copy pathmeson.build
32 lines (26 loc) · 815 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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,
)
if get_option('test')
subdir('test')
endif