The daycare trick does it. Drop your Pokémon in the daycare, then set up a way to keep the game running while you're not there.
On Ruby, Sapphire and Emerald, get the Acro Bike; on Diamond and Pearl, use the bike's slow gear. Find a mud slope, ride up it, then wedge something heavy onto the button so the bike keeps pedalling. Leave it for four to eight hours depending on the Pokémon's level, and the daycare will have done the rest by the time you're back.