How do you wash gym clothes so that they don't smell?

You put the clothes in the wash machine with laundry detergent/soap and then put the clothes in the dryer with a dryer sheet.