2018-09-20 18:54:10 +00:00
|
|
|
project('nlohmann_json',
|
|
|
|
'cpp',
|
2022-08-12 13:04:06 +00:00
|
|
|
version : '3.11.2',
|
2018-09-20 18:54:10 +00:00
|
|
|
license : 'MIT',
|
|
|
|
)
|
2017-05-08 13:35:00 +00:00
|
|
|
|
|
|
|
nlohmann_json_dep = declare_dependency(
|
2018-09-20 18:54:10 +00:00
|
|
|
include_directories: include_directories('single_include')
|
2018-06-24 14:53:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
nlohmann_json_multiple_headers = declare_dependency(
|
2018-09-20 18:54:10 +00:00
|
|
|
include_directories: include_directories('include')
|
2017-05-08 13:35:00 +00:00
|
|
|
)
|
2018-11-07 22:56:55 +00:00
|
|
|
|
2019-01-30 10:40:06 +00:00
|
|
|
if not meson.is_subproject()
|
2018-11-07 22:56:55 +00:00
|
|
|
install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann')
|
2022-08-07 18:33:34 +00:00
|
|
|
install_headers('single_include/nlohmann/json_fwd.hpp', subdir: 'nlohmann')
|
2018-11-07 22:56:55 +00:00
|
|
|
|
|
|
|
pkgc = import('pkgconfig')
|
|
|
|
pkgc.generate(name: 'nlohmann_json',
|
|
|
|
version: meson.project_version(),
|
|
|
|
description: 'JSON for Modern C++'
|
|
|
|
)
|
2019-01-30 10:40:06 +00:00
|
|
|
endif
|