mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-08 23:24:20 +00:00
meson: install headers and pkg-config file (#383)
This commit is contained in:
parent
a72a0536c7
commit
49a707dc77
1 changed files with 10 additions and 0 deletions
10
meson.build
10
meson.build
|
|
@ -17,6 +17,16 @@ magic_enum_dep = declare_dependency(
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue