Added optimization to CMAKE file