From 370a130cbd28b36361779e65eb4009545d5f438c Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Thu, 17 Oct 2024 15:01:11 +0200 Subject: [PATCH] meson: install headers and pkg-config file --- 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