1project('nlohmann_json', 2 'cpp', 3 version : '3.11.2', 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') 17install_headers('single_include/nlohmann/json_fwd.hpp', subdir: 'nlohmann') 18 19pkgc = import('pkgconfig') 20pkgc.generate(name: 'nlohmann_json', 21 version: meson.project_version(), 22 description: 'JSON for Modern C++' 23) 24endif 25