introduce cmake to bdwgc