What is the correct way to add a component to a blueprint asset via c++?

Is USubobjectDataSubsystem the only way?