Gave the using section a makeover.

This commit is contained in:
Aaron Jacobs 2014-07-01 11:59:25 +10:00
parent ff22ca7973
commit 969921748b

View File

@ -12,23 +12,23 @@ serialization and deserialization to and from strings. It can also preserve
existing comment in unserialization/serialization steps, making it a convenient existing comment in unserialization/serialization steps, making it a convenient
format to store user input files. format to store user input files.
Using json-cpp in your project
------------------------------
The recommended approach to integrate json-cpp in your project is to Using JsonCpp in your project
build the the amalgamated source (a single .cpp) with your own build -----------------------------
system. This ensures compilation flags consistency and ABI compatibility.
See section "Generating amalgamated source and header" to generate them The recommended approach to integrating JsonCpp in your project is to build the
from the source distribution. the amalgamated source (a single `.cpp` file) with your own build system. This
ensures consistency of compilation flags and ABI compatibility. See the section
"Generating amalgamated source and header" for instructions.
Directory include/ should be added to your compiler include path. The `include/` should be added to your compiler include path. Jsoncpp headers
json-cpp headers should be included as follow: should be included as follow:
#include <json/json.h> #include <json/json.h>
If json-cpp was build as a dynamic library on Windows, then your project If JsonCpp was build as a dynamic library on Windows, then your project needs to
need to define macro "JSON_DLL" to JSON_API should import exported symbols. define the macro `JSON_DLL`.
Building/Testing with new CMake build system Building/Testing with new CMake build system
-------------------------------------------- --------------------------------------------