cmake for mf/lg