At the risk of being trite, do something athletic on a regular basis. Weight lifting is one way to get there for sure, but there are tons of things which will also do. Regular swimmers for example have great physiques even if they don't lift. The key seems to be to do something you enjoy enough that you'll be consistently active over the course of years.