Cmake source types how can I build only a specific target

Is there a way to specify in the yaml, for cmake based projects, to build only one specific target?

Basically how do I make snapcraft execute the following:
cmake --build . --target myawesometarget