then firstly build an ordinary c++ sln (not ue) with such depency, maybe need to update somehow project setting there. and only after maybe you can find compiler arguments that you need. and after that you can add them in some apropriate cs file of unreal , which build it (so maybe some custom ue needed, or custom UBT, idk).
it looks like it’s not needed, because sometime redistr already installed by other programs like games and all okay after that, they don’t need to be included with every game. it’s usual process to install it once on a machine (bad design, yeah)