works:programmer:cpp:curlpp-and-nlohmann-json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

works:programmer:cpp:curlpp-and-nlohmann-json [2019/10/12 07:31]
Chugreev Eugene создано
works:programmer:cpp:curlpp-and-nlohmann-json [2019/10/12 07:49] (current)
Chugreev Eugene
Line 1: Line 1:
 ====== Эксперементы с Curlpp и nlohmann/json ====== ====== Эксперементы с Curlpp и nlohmann/json ======
-<code c++>+<code bash> 
 +ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null 
 +brew install nlohmann_json 
 +brew install curlpp 
 +</code> 
 + 
 +<code text CMakeLists.txt> 
 +cmake_minimum_required(VERSION 3.12) 
 +project(netq) 
 + 
 +set(CMAKE_CXX_STANDARD 17) 
 +# find_package(nlohmann_json 3.2.0 REQUIRED) 
 + 
 +link_directories(/usr/local/Cellar/curlpp/0.8.1) 
 +link_directories(/usr/local/Cellar/nlohmann-json/3.7.0) 
 + 
 +find_package(nlohmann_json REQUIRED PATHS /usr/local/Cellar/nlohmann-json/3.7.0/ NO_DEFAULT_PATH) 
 + 
 +add_executable(netq main.cpp) 
 +target_link_libraries(netq LINK_PUBLIC curl curlpp nlohmann_json::nlohmann_json) 
 +# target_link_libraries(netq PRIVATE nlohmann_json::nlohmann_json) 
 +</code> 
 + 
 +<code c++ main.cpp>
 #include <iostream> #include <iostream>
 #include <sstream> #include <sstream>
works/programmer/cpp/curlpp-and-nlohmann-json.1570865469.txt.gz · Last modified: 2019/10/12 07:31 by Chugreev Eugene