1project(json_example) 2cmake_minimum_required(VERSION 2.8.12) 3 4find_package(nlohmann_json CONFIG REQUIRED) 5 6add_executable(json_example example.cpp) 7target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json) 8