In passing

Casually, as an aside.

I mentioned to my friend in passing that I want to change jobs.