Update README.md to mention PlatformIO

pull/4015/head
Paweł Kozubal 2023-04-17 23:16:01 +02:00 committed by GitHub
parent 368af84ab2
commit 614be938b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -1359,6 +1359,27 @@ CPMAddPackage(
VERSION 3.9.1)
```
If you are using [PlatformIO](https://platformio.org/) you can add this repo directly to your `platformio.ini` like this:
```ini
[env:your_env_name]
lib_deps =
nlohmann-json=https://github.com/nlohmann/json.git
```
or you can include it as a dependency in your `library.json` like this:
```json
"dependencies": [
{
"name": "nlohmann-json",
"version": "https://github.com/pidpawel/json.git"
}
]
```
### Pkg-config
If you are using bare Makefiles, you can use `pkg-config` to generate the include flags that point to where the library is installed: