-----Urspruengliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Matthew Woehlke
Gesendet: Freitag, 29. November 2013 17:26
An: [email protected]
Betreff: Re: [CMake] Get all targets a target depends on
On 2013-11-29 03:07, Dominik Bernhardt wrote:
is it possible to get a list of all targets on which a particular
target depends on. The only idea I have so far is to query the
LINK_LIBRARIES target property. However that would only allow to get
the libraries I'm linking with and for example no custom targets.
Any ideas how to accomplish this task?
I guess you want to make use of this information in CMake, and are
not just curious?
If you just want to know for your own information, you could use the
Ninja generator; ninja has the ability to output a dependency graph
as a dot file.
you are absolutely right. It's not just for information. I have a lot
of targets that I import and I would like query all dependent targets
of my applications to figure out which DLLs are needed to run the
application. I would use this information to either set the PATH
environment or copy the DLLs to my binary directory
Dominik
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake