If you liked Last and First Men by Olaf Stapledon,
here are some books like this: