cmake: add cmake build and installation