CMake files

Version of CMake files that successfully generate cross-platforms IDE projects or make files. @breznak observations in my last PR were taken in account.

Original [JIRA](https://issues.numenta.org/browse/NPC-300).

<!---
@huboard:{"order":295.0}
-->