
If there's no package for your distribution, try making one! If you do, and it is added to your distribution's repositories, please submit a pull request to add it to the list above. Since so few distributions currently have a package for cpr, most users will not be able to run your program with this approach.Ĭurrently, we are aware of packages for the following distributions: Packages for Linux DistributionsĪlternatively, you may install a package specific to your Linux distribution. Please refer to hedronvision/bazel-make-cc-https-easy.

Target_link_libraries(your_target_name PRIVATE cpr::cpr) Bazel If you already have a CMake project you need to integrate C++ Requests with, the primary way is to use fetch_content.Īdd the following to your CMakeLists.txt.Īdd_executable(your_target_name your_target_name.cpp)

You can find the latest documentation here.

header // application/json charset=utf-8Īnd here's less functional, more complicated code, without cpr. # include int main( int argc, char** argv) )
