The Preston North End attacker has become Aberdeen's first signing of the January transfer window.