[CMake] List all binaries associated with a target.

Klaim - Joël Lamotte mjklaim at gmail.com
Fri Mar 13 21:24:16 EDT 2015


I am looking for a (hopefully simple) way to do the following:
1. gather a list of paths of all the binaries associated with a target,
    that is all the linked dll/so and executable the target link or depend
on.
2. copy these somewhere else.
3. take into account the build modes so that the right binaries are copied
for
    each of the target build mode.

I can't find a way to do 1 so far without manually specifying the
dependencies.
It looks like the generators expressions can't gather these info.
So is there a way to retrieve this list in current CMake features?
Did I miss something?

Thanks for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150314/7402824e/attachment.html>


More information about the CMake mailing list