adding cmake support for vm