[CMake] set up build for mac
[CMake] added support build for IOS