📝 add documentation for integration via vcpkg

This commit is contained in:
Niels Lohmann
2021-08-18 20:49:13 +02:00
parent abd829e6c6
commit 23e3b622aa
4 changed files with 51 additions and 2 deletions
@@ -0,0 +1,7 @@
project(json_example)
cmake_minimum_required(VERSION 2.8.12)
find_package(nlohmann_json CONFIG REQUIRED)
add_executable(json_example example.cpp)
target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json)
@@ -0,0 +1,9 @@
#include <nlohmann/json.hpp>
#include <iostream>
using json = nlohmann::json;
int main()
{
std::cout << json::meta() << std::endl;
}