\vcpkg.exe list 可以列举已经安装的包 libevent、openssl、opencv、protobuf、grpc、jsoncpp、nlohmann-json 都是比较一些比较常用的包,有需要的可以安装
因此通过 nlohmann-json 库解析并装载到新的 nlohmann::json 对象中,最终返回这个 nlohmann::json 对象,并设置返回类型(set_content)也是 application
/vcpkg install fmt spdlog boost-asio nlohmann-json在CMake中集成vcpkg:# 在CMakeLists.txt开头添加if(DEFINED ENV{
# 是否在构建完成后删除源码和构建目录 ) # 目标文件 $DllPath = "$InstallDir/bin/proj_9_4.dll" # 依赖库数组 $Librarys = @("nlohmann-json