You can avoid your makeup from looking Cakey by applying a little at a time instead of putting the makeup on in one thick layer.
Put a small layer on and then add another layer of makeup. You can also avoid your makeup from looking Cakey by using a setting powder.