Started working on CMake file.
Porting to CMake finished.