tangram-map/tangram-es — pull request #12 by karimnaaji (2014-10-02 15:14:48+00:00)
Title: Build system

Build-system with the corresponding Android/iOS/OS X toolchains cmake files, mainly architecture changes with new CMake build files.

**Architecture changes**
- CMake : The project now uses CMake, inside the **build/** folder there are the toolchain and utilities cmake files. The first called and used CMake file is in the root **/CMakeLists.txt** and then runs the different platform-dependent cmake files, which then run the CMakeFiles of the dependent libraries if needed (like Core/GLFW/JSon/GLM).
- Core : is now used as a static library, and has its own CMakeLists.txt.
- Json : is now used as a static library as a dependency of the Core static library.
- GLFW : is now used a a git submodule.
- Changed somehow the architecture of the project : iOS/OS X platforms has now an **src/** folder where to put the sources, an **include/** folder for dependency headers and a **lib/** folder to put libraries if needed.
- Removed old Makefile
- Further improvements/work :
+ Use CMake to build the UnitTests
+ It could be a good idea to modify a bit the CMake toolchain for Core in order to be able to generate an executable for it; for test purposes.
+ Check which files are still needed inside the **android/** folder considering the new toolchain for this platform
+ GLM : could also be used as a submodule from [here](https://github.com/g-truc/glm)

**Source code changes**
- Fixed some missing inclusions
- Fixed some compiler/standard library issues to fit for g++/clang++ at the same time
- Curl : used headers from [this project](http://seiryu.home.comcast.net/~seiryu/libcurl-ios.html)