2018-09-20 20:54:10 +02:00
|
|
|
project('nlohmann_json',
|
|
|
|
'cpp',
|
2019-07-28 20:20:41 +02:00
|
|
|
version : '3.7.0',
|
2018-09-20 20:54:10 +02:00
|
|
|
license : 'MIT',
|
|
|
|
)
|
2017-05-08 15:35:00 +02:00
|
|
|
|
|
|
|
nlohmann_json_dep = declare_dependency(
|
2018-09-20 20:54:10 +02:00
|
|
|
include_directories: include_directories('single_include')
|
2018-06-24 16:53:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
nlohmann_json_multiple_headers = declare_dependency(
|
2018-09-20 20:54:10 +02:00
|
|
|
include_directories: include_directories('include')
|
2017-05-08 15:35:00 +02:00
|
|
|
)
|
2018-11-07 23:56:55 +01:00
|
|
|
|
2019-01-30 11:40:06 +01:00
|
|
|
if not meson.is_subproject()
|
2018-11-07 23:56:55 +01: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 11:40:06 +01:00
|
|
|
endif
|