1
0
Fork 0
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:
Stephan Lachnit 2024-11-14 00:03:26 +01:00 committed by GitHub
parent a72a0536c7
commit 49a707dc77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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