rearrange in cmake