• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1project('nlohmann_json',
2    'cpp',
3    version : '3.10.0',
4    license : 'MIT',
5)
6
7nlohmann_json_dep = declare_dependency(
8    include_directories: include_directories('single_include')
9)
10
11nlohmann_json_multiple_headers = declare_dependency(
12    include_directories: include_directories('include')
13)
14
15if not meson.is_subproject()
16install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann')
17
18pkgc = import('pkgconfig')
19pkgc.generate(name: 'nlohmann_json',
20    version: meson.project_version(),
21    description: 'JSON for Modern C++'
22)
23endif
24