diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 3cc6c76..d61dc25 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,23 @@ -project('nlohmann_json', 'cpp') - -nlohmann_json_inc = include_directories('include') +project('nlohmann_json', + 'cpp', + version : '3.10.5', + license : 'MIT', +) nlohmann_json_dep = declare_dependency( - include_directories : nlohmann_json_inc + include_directories: include_directories('single_include') +) + +nlohmann_json_multiple_headers = declare_dependency( + include_directories: include_directories('include') +) + +if not meson.is_subproject() +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++' ) +endif |