nlohmann-json-3.12.0

Introduksjon til nlohmann-json

Pakken nlohmann-json tilbyr en header-only in-memory JSON og grensesnittbibliotek for C++, lik glaze-6.0.1.

nlohmann-json Avhengigheter

Påkrevd

CMake

Installasjon av nlohmann-json

Installer nlohmann-json ved å kjøre følgende kommandoer:

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

Nå, som root bruker:

ninja install

Parameterforklaringer

-D BUILD_TESTING=OFF -D JSON_BuildTests=OFF: Disse parameterene deaktiverer bygging av tester.

Innhold

Installerte Programmer: Ingen
Installerte Biblioteker: Ingen
Installerte Mapper: /usr/include/nlohmann og /usr/share/cmake/nlohmann_json