Cmake build script splitted into parts. Files moved to their locations.

Signed-off-by: Gleb Golubitsky <sectoid@gnolltech.org>