Written by Joseph Alevin. Original and description can be found here. This fork provides CMake installation (no tests, no examples). Original installation didn't work for some json documents (I am not sure why).
The library is installed in user-space (${HOME}/lib/fson
) and (${HOME}/include/fson
) by default.
mkdir build; cd build
cmake ..
cmake --build .
cmake --build . --target install
Verify that the library and include files can be found:
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig
pkg-config --cflags --libs libfson
Expect output similar to:
-I/home/advsim/include/fson -L/home/advsim/lib/fson -lfson
Fin.