Merge pull request #37 from drizt/master

Changed LIBRARY_OUTPUT_PATH to new-style
Fixed issue#41

Parser should complain when no data is given.
Fixed linking issue with Qt5 (issue #24)
Added indent to arrays

I had this :

{
 "Fer" :  {
  "color" : [
0.296361,
0.307408,
0.331609,
1.0
  ]
 }
}

And wanted this :

{
 "Fer" :  {
  "color" : [
   0.296361,
   0.307408,
   0.331609,
   1.0
  ]
 }
}

refactored indentation

corrected issues
Merge pull request #40 from mathieu/array_indent

Added indent to arrays
Example for benchmarking parsing of json files

This tries to load a file and benchmark the parsing of the file.
Note that the example is Qt5 specific, and isn't enabled by default.

Also note that it will fail if built and no input file with the right
name is present.
Provide benchmark code string to double conversion

This example file benchmarks QLocale's string to double conversion
over the native linux locale strtod_l function for string to double
conversion.

This benchmark is not built or run by default of testing because it
isn't that useful as a general thing, but can serve for inspiration for
later.
Switch from native locale handling to QLocale

This ensures building on platforms where Qt is supported, rather than
just work on linux/gcc and msvc. Notably, mingw also works now.

This fixes issue 32 and 33.

Performance wise, QLocale is slightly slower, but for a 10mb json file
with a good mix of objects, arrays, doubles, integers and strings, the
timings was around 975 msec for using 'native locales' and 980 msec for
using QLocale. It was reproducibly approximately 5 msec slower for a
10mb file.

Note that the json_scanner.cc needs to be regenerated. I don't have the
same flex version, so the diff in that file was quite large.
Merge pull request #43 from svuorela/benchmarks

Benchmarks
Merge pull request #44 from svuorela/qlocale

Switch from native locale handling to QLocale
No debug mode by default

Removed code not works. CMAKE_BUILD_TYPE sets on project() command.
In ideally user should define this or use CFLAGS/CXXFLAGS environment.
Also as documented CMAKE_BUILD_TYPE can be None.
Fix building

Forgot to commit updated file generated by flex.
Qt5 testing: do not require QtGui

Do not require a running X server while running the tests. This
solution works only on Qt5 right now.