add cmake. format code.