danielaparker/jsoncons — pull request #5 by MarkaPola (2014-01-27 15:29:02+00:00)
Title: cmake files for compîlation

Hi Daniel,

here is the infrastructure to compile examples, as well as test_suite, on all platforms. For that purpose, I rely on cmake free tool (http://www.cmake.org).
CMake is able to generate vcproj on windows as well as GNU makefiles on Unix or Ninja files on all platforms (various other generators are available).

Compilation framework is as follow:
/build/cmake directory contains configuration files
examples/build/cmake/CMakeLists.txt: description for examples compilation
test_suite/build/cmake/CMakeLists.txt: description for tests compilation

To generate makefiles, just set examples/build/cmake or test_suite/build/cmake as current directory and launch, for example, following command:
for Windows, to generate sln/vcproj: cmake -G "Visual Studio 10 Win64"
for Unix, to generate GNU makefiles: cmake -G "Unix Makefiles"

Currently, I validate on Linux using clang 3.3 with llvm C++ library. GNU C++ runtime cannot be used due to incompatibilities with C++11 standard (STL containers are not C++11 compliant).
FYI, I also use jsoncons on MacOS with XCode 5 which rely on clang 3.3 (tests not yet passed).

Marc