How to create morph targets animation in C++?

I have a face model with morph targets imported into UE4. Now I want to create curves for these morph targets to create an animation. I want to generate these curve values in C++, and then gives the animation sequence or animation blueprint. How can I do this?
Or, if it is impossible to generate curve value in C++, I can bake these curves in some resource file. How should UE4 read the baked value?