Skip to content

steinwurf/bourne

Repository files navigation

bourne

Linux make-specs Windows make-specs MacOS make-specs Linux CMake Windows CMake MacOS CMake Raspberry Pi Valgrind No Assertions Clang Format Cppcheck

image

A simple c++11 json reader and writer.

Table of Contents:

Usage

Usage examples are located in the examples folder.

Build

Fetch the sources:

git clone https://github.com/steinwurf/bourne
cd bourne

We use the waf build system to build the bourne static library. We have some additional waf tools which can be found at waf.

To configure and build bourne, run the following commands:

python waf configure
python waf build
python waf install --destdir=/tmp

The final install step will create a folder containing all the nessecary files needed to use the library (e.g. static library, headers etc.). You can change the output folder by passing a different path to --destdir:

Use as Dependency in CMake

To depend on this project when using the CMake build system, add the following in your CMake build script:

add_subdirectory("/path/to/bourne" bourne)
target_link_libraries(<my_target> steinwurf::bourne)

Where <my_target> is replaced by your target.

Credit

The code for this library have been inspired by the SimpleJSON library.