…ulting in not finding the files.
Modify build system to create a CMake package configuration file with exported targets, including properly set up interface include directories. This makes it much easier for CMake-based users of the library to use JsonBox, especially from a JsonBox build directory.
Use CMake's GenerateExportHeader to generate a header with an appropriate definition of an ABI export symbol. Add such annotation to components which need it. Don't export symbols by default on ELF platforms. This allows building of shared libraries on Windows to work properly (as these require ABI export/import decoration). Note that this bumps the minimum CMake requirement from 2.6 to 2.8.12.
Using FILE(GLOB) to specify build files is Evil and strongly discouraged; see e.g. http://stackoverflow.com/questions/1027247/best-way-to-specify-sourcefiles-in-cmake.