Launch an exe containing cuda code withou nvidia card

Dear all I have a stupid question I don’t know exactly how to solve.

I have a c++ binary that performs image processing on gpu or cpu.
The cpu code is a fallback for users withour nvidia card.
But since the exe load the cuda dll at startup, it will fail if nvcuda is not on the system.

What is the smartest way to fix this problem? (I would like to avoid packaging my cuda code in a plugin).

Have proper compilation schemes for GPU and non-GPU systems…

Could you detail your answer or point to a link with more information?

Thanks a lot!