[CMake] Top level target depending on a file

Alexander Broekhuis a.broekhuis at gmail.com
Mon Dec 12 05:40:49 EST 2011


Hi,

Can anyone help me with this? I haven't found a proper solution myself yet..

2011/12/8 Alexander Broekhuis <a.broekhuis at gmail.com>

> Hi all,
>
> In my project, some top level targets depend on simple text files. These
> targets produce a zip file as output, this is done using a custom command
> with a post-build to a library target.
> Part of the zip file are some simple text files, which are included using
> some custom CPack handling inside the custom command.
>
> How can I let the top level target depend on these text files as well? In
> other words, if a text files changes, the zip file has to be regenerated.
> These text files are not generated or copied etc. So a simple DEPENDS would
> suffice. I know add_custom_command(OUTPUT has support for this, but am
> wondering how to do this with add_custom_command(TARGET.
>
> TiA!
>
> --
> Met vriendelijke groet,
>
> Alexander Broekhuis
>



-- 
Met vriendelijke groet,

Alexander Broekhuis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111212/44149a90/attachment.htm>


More information about the CMake mailing list