mirror of
https://github.com/nlohmann/json.git
synced 2026-05-21 21:55:23 +00:00
📝 add mkdocs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
project(json_example)
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
add_definitions("-std=c++11")
|
||||
|
||||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||
conan_basic_setup()
|
||||
|
||||
add_executable(json_example example.cpp)
|
||||
target_link_libraries(json_example ${CONAN_LIBS})
|
||||
@@ -0,0 +1,5 @@
|
||||
[requires]
|
||||
nlohmann_json/3.7.3
|
||||
|
||||
[generators]
|
||||
cmake
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << json::meta() << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user