For doing that you have to change Site Address in General settings, for the new domain set domain destination to point the directory where wordpress is installed and make sure you change hard coded url to point them to the new domain.
For more info please read Changing The Site Url >> WordPress Codex