Semiconductor near-infrared lasers have been widely used in lidar systems. However, various source types have different shapes and divergence angles, causing more difficulties for long-distance detection. In this paper, an optical collimation system is designed for a long-range lidar system with a shaped laser source (the wavelength is 905 nm, the emitted spot size is 50 µm long by 10 µm wide, and the divergence angles are 33°and 15°, respectively, which are unconventional). On the basis of the traditional method of aspheric lens setting, a pair of asymmetric aspherical lenses were designed using an extended polynomial. The simulation results show that the spot shapes are all close to circular from 100 mm to 30 m and the spot size always remains the same value. The corrected optical system is put into the designed lidar system for verification. It results show that the average divergence angles in the long and short axis directions are 0.06°and 0.07°, which satisfy the project requirements. This optical system designed provides a collimation scheme and expands the application of vehicle-mounted lidar in the field of long-range detection.