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.