First version of code and cmake.