<div dir="ltr">I am looking for a (hopefully simple) way to do the following:<div>1. gather a list of paths of all the binaries associated with a target,</div><div>    that is all the linked dll/so and executable the target link or depend on.</div><div>2. copy these somewhere else.</div><div>3. take into account the build modes so that the right binaries are copied for </div><div>    each of the target build mode.</div><div><br></div><div>I can't find a way to do 1 so far without manually specifying the dependencies.</div><div>It looks like the generators expressions can't gather these info.</div><div>So is there a way to retrieve this list in current CMake features?</div><div>Did I miss something?</div><div><br></div><div>Thanks for your time.</div><div><br></div><div><br></div></div>