json/meson.build

24 lines
552 B
Meson
Raw Normal View History

2018-09-20 21:54:10 +03:00
project('nlohmann_json',
'cpp',
2020-06-14 18:16:45 +03:00
version : '3.8.0',
2018-09-20 21:54:10 +03:00
license : 'MIT',
)
2017-05-08 16:35:00 +03:00
nlohmann_json_dep = declare_dependency(
2018-09-20 21:54:10 +03:00
include_directories: include_directories('single_include')
2018-06-24 17:53:02 +03:00
)
nlohmann_json_multiple_headers = declare_dependency(
2018-09-20 21:54:10 +03:00
include_directories: include_directories('include')
2017-05-08 16:35:00 +03:00
)
2018-11-08 01:56:55 +03:00
if not meson.is_subproject()
2018-11-08 01:56:55 +03:00
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