The idea is the same as in autotools-multilib. The eclass is a straightfoward wrapper for cmake-utils which inherits multilib-build and runs cmake phase functions for all ABIs (using out-of-source build).
The eclass uses the same header consistency check as autotools-multilib (therefore, I move the function to multilib-build). I'm attaching an ebuild for virtualgl as an example of use.