This commit is contained in:
nlohmann committed 2024-12-10 08:42:33 +00:00
1 parent b014c90f94
commit ab14172173
270 files changed
+1412 -1034

No files matched your search

+3 -5
View File
@@ -1,9 +1,7 @@
cmake_minimum_required(VERSION 3.15)
project(json_example)
cmake_minimum_required(VERSION 2.8.12)
add_definitions("-std=c++11")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
find_package(nlohmann_json REQUIRED)
add_executable(json_example example.cpp)
target_link_libraries(json_example ${CONAN_LIBS})
target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json)
+3 -2
View File
@@ -1,5 +1,6 @@
[requires]
nlohmann_json/3.7.3
nlohmann_json/3.11.3
[generators]
cmake
CMakeToolchain
CMakeDeps
+2 -1
View File
@@ -1,9 +1,10 @@
#include <nlohmann/json.hpp>
#include <iostream>
#include <iomanip>
using json = nlohmann::json;
int main()
{
std::cout << json::meta() << std::endl;
std::cout << std::setw(4) << json::meta() << std::endl;
}