<br><br><div class="gmail_quote">On Sat, Dec 20, 2008 at 3:09 AM, Brad Aisa <span dir="ltr"><<a href="mailto:Brad.Aisa@colorado.edu">Brad.Aisa@colorado.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to create a target that will copy (or link) a big whack of include files defined in my project to a local /include folder. (They start life in a bunch of subfolders, and some of them are generated programmatically during the build.) Note that we already have an install-time process, what I want is to copy (or freshen, or link) all these include files automatically, as the last step in the build. I have the files in lists, ex. ta_HEADS css_HEADS etc. Thanks!<br>
</blockquote><div>If you want to "install" these files as last step of build process, then this should be part of build process, not the install one. It is strange, requirement, but you can meet it.<br>To make this part of build process, you can use custom command to set proper dependencies between source and destination file. To copy file, you can use cmake itself in 'command' mode. Next, you should create custom target which depends on all destination files (and optionally excluded from default build process) to run whole mechanism at build time. (Of course, you should write macros/foreach for this purpose)<br>
<br>Alternatively you can put all your headers into separate (may be in addition to default ones) component and create custom target which runs cmake to process install script (see how cmake does this itself). The drawback of this approach, is that this target will always be run (but cmake still checks whether source and destination files are different) during build process.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>