Based on a substrate integrated lens (SIL), a compact line source generator (LSG) for feeding continuous transverse stub (CTS) arrays with linear-polarized (LP) beam scanning and dual-polarized (DP) operations is presented in this paper. The SIL consists of metamaterial cells with different sizes being arranged as concentric annulus and is printed on the center surface of two substrate layers. The SIL can convert the cylindrical wave generated by the feed probe of SIW-horn to the planar wave for feeding the CTS array. This rotationally symmetric SIL can be used conveniently to design LSG for feeding CTS arrays with the continuous beam scanning and DP operations, which has been verified by the fabrications and measurements. By simply rotating the SIW-horn along the edge of SIL, the 10-element LP-CTS array obtains a measured beam scanning range of ±35° with the highest gain of 20.6 dBi. By setting two orthogonal SIW-horns at the edge of the proposed SIL, the nine-element DP-CTS array with orthogonal radiation stubs is excited. The DP array obtains the gain of 20.3 dBi at the center frequency with the isolation of 28 dB and the cross-polarization level <−25 dB.