How to install shared library with exe?

I defined a exe, and then link a shared library, then addInstallArtifact. But only exe copy to zig-out/bin. I want copy the so/dll to zig-out/bin too. What should I do?
my code like:

const exe = b.addExecutable();
exe.linkLibrary(dep.artifact("otherdll"));
b.installArtifact();

Thank your reply!

I haven’t tested this myself, but I think this would work:

b.installArtifact(dep.artifact("otherdll"));