From 49a707dc775dc9494172ab635743f641a9f96e77 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Thu, 14 Nov 2024 00:03:26 +0100 Subject: [PATCH] meson: install headers and pkg-config file (#383) --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index a0d22b04d..0bef54092 100644 --- a/meson.build +++ b/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