[cmake-developers] Wrapping functions in CMake

Petr Kmoch petr.kmoch at gmail.com
Mon Jul 13 03:37:18 EDT 2015


On Thu, Jul 9, 2015 at 7:35 PM, Clifford Yapp <cliffyapp at gmail.com> wrote:

> [...]
>
> 2.  Second we maintain global lists of all exec, library, and custom
> targets.  This allows us to run timestamping build targets that run at
> the very beginning and very end of the build process, by setting up
> target dependences for the beginning and ending timestamp targets.
> The ending time stamp target must depend on every other build target,
> and the beginning timestamp is depended on by every other build
> target.  To do this, as far as I know, we need lists of all build
> targets so we can set this up with the add_dependencies command.
>

In our project suite setup, we need a list of all existing targets as well.
Having access to it from CMakeLists would be invaluable.

Petr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150713/21e5d94d/attachment.html>


More information about the cmake-developers mailing list