[CMake] targets and dependencies
Brad King
brad.king at kitware.com
Wed Jun 28 10:59:17 EDT 2006
David Somers wrote:
> For a cmake project, it it possible to get a list of all its targets; and for
> the targets to get their dependencies?
There is no official interface for this. You could try using
get_cmake_property to get the CACHE_VARIABLES property. Look for
variables of the form "foo_LIB_DEPENDS". This is not guaranteed to
remain the same in the future though.
-Brad
More information about the CMake
mailing list