meson.build 629 B

123456789101112131415161718192021222324
  1. project('nlohmann_json',
  2. 'cpp',
  3. version : '3.11.2',
  4. license : 'MIT',
  5. )
  6. nlohmann_json_dep = declare_dependency(
  7. include_directories: include_directories('single_include')
  8. )
  9. nlohmann_json_multiple_headers = declare_dependency(
  10. include_directories: include_directories('include')
  11. )
  12. if not meson.is_subproject()
  13. install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann')
  14. install_headers('single_include/nlohmann/json_fwd.hpp', subdir: 'nlohmann')
  15. pkgc = import('pkgconfig')
  16. pkgc.generate(name: 'nlohmann_json',
  17. version: meson.project_version(),
  18. description: 'JSON for Modern C++'
  19. )
  20. endif