How can I customize the icon of a C++ class

I was wondering what I need to do to add custom Icon to my custom Actor class to make them appear in the editor. This seems to be a lot of trouble in Unreal, I don’t know how to do it.