Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build24
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