Generate plots with cmake