Cmake supported system

added support for cmake based build system