Output of CMake message to console

* Added CMake console management
* Cleaned code