add cmake file for building