You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.md
+53-2Lines changed: 53 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ The only explicit requirements are:
109
109
* a `C++17` compatible compiler such as Clang or GCC. The minimum required version of GCC is unknown, so if anyone has trouble building this library with a specific version of GCC, do let me know
110
110
* If you would like to perform https requests `OpenSSL` and its development libraries are required.
111
111
112
-
## Building cpr - Using vcpkg
112
+
###Building cpr - Using vcpkg
113
113
114
114
You can download and install cpr using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
115
115
```Bash
@@ -121,13 +121,64 @@ cd vcpkg
121
121
```
122
122
The `cpr` port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
123
123
124
-
## Building cpr - Using Conan
124
+
###Building cpr - Using Conan
125
125
126
126
You can download and install `cpr` using the [Conan](https://conan.io/) package manager. Setup your CMakeLists.txt (see [Conan documentation](https://docs.conan.io/en/latest/integrations/build_system.html) on how to use MSBuild, Meson and others).
127
127
An example can be found [**here**](https://github.com/libcpr/example-cmake-conan).
128
128
129
129
The `cpr` package in Conan is kept up to date by Conan contributors. If the version is out of date, please [create an issue or pull request](https://github.com/conan-io/conan-center-index) on the `conan-center-index` repository.
130
130
131
+
### Building cpr with Meson
132
+
133
+
Meson is available in all Linux/BSD and on Marcos in their main repository. Once installed just make a directory `cpr_test` and enter it and run:
134
+
135
+
```bash
136
+
meson init -l cpp -n cpr-test
137
+
```
138
+
139
+
It creates a .cpp file in the directory root and a meson.build just like this.
140
+
141
+
Now to make `cpr` available to the project, make a `subprojects` directory and install it with:
142
+
143
+
```bash
144
+
meson wrap install cpr
145
+
```
146
+
147
+
It creates a meson wrap file in `subprojects/cpr.wrap`, with that we need to it as dependecy in the `meson.build` file:
Then go to `localhost:4000` with your web browser or [curl](curl.se). That's it!
181
+
131
182
## Contributing
132
183
133
184
Please fork this repository and contribute back using [pull requests](https://github.com/libcpr/cpr/pulls). Features can be requested using [issues](https://github.com/libcpr/cpr/issues). All code, comments, and critiques are greatly appreciated.
0 commit comments