Denmark international Andreas Cornelius has completed his move to Cardiff on a five-year deal after passing his medical on Monday morning.