add function to get the number of submeshes
update cmake