📝 add mkdocs
This commit is contained in:
parent
c92a696852
commit
a8f0cd15df
36 changed files with 2656 additions and 261 deletions
9
doc/mkdocs/docs/integration/conan/CMakeLists.txt
Normal file
9
doc/mkdocs/docs/integration/conan/CMakeLists.txt
Normal file
|
@ -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})
|
5
doc/mkdocs/docs/integration/conan/Conanfile.txt
Normal file
5
doc/mkdocs/docs/integration/conan/Conanfile.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
[requires]
|
||||
nlohmann_json/3.7.3
|
||||
|
||||
[generators]
|
||||
cmake
|
9
doc/mkdocs/docs/integration/conan/example.cpp
Normal file
9
doc/mkdocs/docs/integration/conan/example.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << json::meta() << std::endl;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue