mirror of
https://github.com/nlohmann/json.git
synced 2026-10-11 17:07:15 +00:00
Overwork documentation (#4516)
This commit is contained in:
1 parent
9f60e85557
commit
549c79ba7e
68 files changed
+1085
-335
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << std::setw(4) << json::meta() << std::endl;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
project('json_example', 'cpp',
|
||||
version: '1.0',
|
||||
default_options: ['cpp_std=c++11']
|
||||
)
|
||||
|
||||
dependency_json = dependency('nlohmann_json', required: true)
|
||||
|
||||
executable('json_example',
|
||||
sources: ['example.cpp'],
|
||||
dependencies: [dependency_json],
|
||||
install: true
|
||||
)
|
||||
Reference in new issue
Block a user