Skip to content

Commit

Permalink
DOC: fix typos in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-42 committed Jul 31, 2017
1 parent 805ae56 commit 2199131
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See the [contribution guidelines](https://github.com/nlohmann/json/blob/master/.
## Integration
### Manual integration

The single required source, file `json.hpp` is in the `src` directory or [released here](https://github.com/nlohmann/json/releases). All you need to do is add
The single required source, file `json.hpp` is in the `src` directory or [released here](https://github.com/nlohmann/json/releases). All you need to do is add

```cpp
#include "json.hpp"
Expand All @@ -67,8 +67,15 @@ to the files you want to use JSON objects. That's it. Do not forget to set the n

### CMake

If you are using CMake, just download the lates release, run ``` cd <path/build/folder> && cmake <path/to/nlohman_json/> && make install ```
To use it in your own project ``` CMakeLists.txt ```
If you are using CMake, just download the latest release, run
```sh
cd <path/build/folder>
cmake <path/to/nlohman_json/>
make install
```

To use it in your own projects ``` CMakeLists.txt ```

```cmake
find_package(nlohmann_json CONFIG REQUIRED)
target_link_libraries(<YourTargetName> nlohmann_json)
Expand All @@ -88,7 +95,8 @@ find_package(nlohmann_json CONFIG REQUIRED)
target_link_libraries(... nlohmann_json)
```
This downloads, compiles, adds includes and links all what is needed automatically. For more details see [nlohman_json hunter package](https://github.com/ruslo/hunter/wiki/pkg.nlohmann_json)
This downloads, compiles, adds includes and links all what is needed automatically.
For more details see [hunter documentation](https://docs.hunter.sh/en/latest/) and [nlohman_json hunter package](https://github.com/ruslo/hunter/wiki/pkg.nlohmann_json).


### OS X and Homebrew
Expand Down

0 comments on commit 2199131

Please sign in to comment.