Integrate CMake as git external, fix cppcheck errors
Partial CR #296
CR #296
Merge pull request #296 from eile/master

Integrate CMake as git external, fix cppcheck errors