Let cmake tests targets language automatically.