From ffe08983dd419c17aab44d9d02faaf5a372e0438 Mon Sep 17 00:00:00 2001 From: Millian Poquet Date: Wed, 7 Nov 2018 23:56:55 +0100 Subject: [PATCH] :meson: install headers + pkg-config --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meson.build b/meson.build index f0271cc3..cbce981f 100644 --- a/meson.build +++ b/meson.build @@ -11,3 +11,11 @@ nlohmann_json_dep = declare_dependency( nlohmann_json_multiple_headers = declare_dependency( include_directories: include_directories('include') ) + +install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann') + +pkgc = import('pkgconfig') +pkgc.generate(name: 'nlohmann_json', + version: meson.project_version(), + description: 'JSON for Modern C++' +)