nlohmann-json-3.12.0

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 2. General Libraries

- Prev

  msgraph-0.3.4

- Next

  PlutoSVG-0.0.7

- Up
- Home

# nlohmann-json-3.12.0

## Introduction to nlohmann-json

The nlohmann-json package provides a header-only in-memory JSON and interface library for C++, like Glaze-7.0.2.

- Download: https://github.com/nlohmann/json/archive/v3.12.0/json-3.12.0.tar.gz

### nlohmann-json Dependencies

#### Required

CMake

## Installation of nlohmann-json

Install nlohmann-json by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr \
          -D CMAKE_BUILD_TYPE=Release  \
          -D BUILD_TESTING=OFF         \
          -D JSON_BuildTests=OFF       \
          -G Ninja .. &&

    ninja

Now, as the `root` user:

    ninja install

## Command Explanations

`-D BUILD_TESTING=OFF -D JSON_BuildTests=OFF`: This parameter disables building tests.

## Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/include/nlohmann and /usr/share/cmake/nlohmann_json

- Prev

  msgraph-0.3.4

- Next

  PlutoSVG-0.0.7

- Up
- Home