2018-09-20 21:54:10 +03:00
|
|
|
project('nlohmann_json',
|
|
|
|
'cpp',
|
2022-01-03 00:35:35 +03:00
|
|
|
version : '3.10.5',
|
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
|
|
|
|
2019-01-30 13:40:06 +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++'
|
|
|
|
)
|
2019-01-30 13:40:06 +03:00
|
|
|
endif
|