cmake for controls