Solution (source code)

= Solution

For $\omega\ne0$, insert the Gaussian damping factor $e^{-\varepsilon x^2/2}$ and use the <Gaussian integral>:
$$
\int_{\mathbb R}
e^{-(\varepsilon-i\omega)x^2/2-i\lambda x}\,dx
=\sqrt{\frac{2\pi}{\varepsilon-i\omega}}
\exp\left[-\frac{\lambda^2}{2(\varepsilon-i\omega)}\right].
$$
Taking $\varepsilon\downarrow0$ in $\mathcal S'$ with the continuous square-root branch gives the <Fresnel integral>
$$
\boxed{
\mathcal F\left[e^{i\omega x^2/2}\right](\lambda)
=\sqrt{\frac{2\pi}{|\omega|}}
e^{i\pi\operatorname{sgn}(\omega)/4}
e^{-i\lambda^2/(2\omega)}}.
$$
For $\omega=0$, the function is constant and its Fourier transform is $\boxed{2\pi\delta_0}$.