23 lines
832 B
Markdown
23 lines
832 B
Markdown
# 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:
|
|
|
|
```sh
|
|
pkg-config nlohmann_json --cflags
|
|
```
|
|
|
|
A pkg-config file is installed by [CMake](cmake.md#json_install) (when the `JSON_Install` option is enabled, which is
|
|
the default for a top-level build) as well as by several [package managers](package_managers.md).
|
|
|
|
Users of the [Meson build system](package_managers.md#meson) will also be able to use a system-wide library, which will be found by `pkg-config`:
|
|
|
|
```meson
|
|
json = dependency('nlohmann_json', required: true)
|
|
```
|
|
|
|
## See also
|
|
|
|
- [Integration](index.md) - all ways to integrate the library
|
|
- [CMake](cmake.md) - use the library from CMake
|
|
- [Package Managers](package_managers.md) - install the library via package managers
|