On second thought, what you want to do might be some what more complicated than I first thought, but I don't see why you couldn't use the same approach with multiple components for multiple packages for what you want too. It's relatively trivial to generate the multiple packages if from components if you have the list of source files.<div>
<div><br></div><div>~</div><div>Doug.<br><br><div class="gmail_quote">On Fri, Jun 15, 2012 at 9:05 AM, Doug <span dir="ltr"><<a href="mailto:douglas.linder@gmail.com" target="_blank">douglas.linder@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oddly, I was just doing that last night. Here's an example:<div><a href="https://github.com/shadowmint/cmake-multi-install" target="_blank">https://github.com/shadowmint/cmake-multi-install</a></div>
<div><br></div><div>If you run:</div>
<div>mkdir build</div><div>cd build</div><div>cmake ..</div><div>cmake -G DEB<br><br>It'll build two debian packages.</div><div>If you want RPMs I suspect you'll have to add:</div><div><br></div><div> <span style="line-height:16px;color:rgb(0,134,179);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">set</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">(</span><span style="line-height:16px;color:rgb(221,17,68);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">CPACK_RPM_COMPONENT_INSTALL</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace"> </span><span style="line-height:16px;color:rgb(221,17,68);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">ON</span><span style="line-height:16px;color:rgb(51,51,51);font-size:12px;white-space:pre-wrap;font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">)</span><br>
<br>...but you get the idea.</div><div>No idea why this isn't in the wiki. It keeps turning up as a question...</div><div><br></div><div>Also, it doesn't work on all the pack builders.</div><div><br></div><div>~</div>
<div>Doug.<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 15, 2012 at 2:57 AM, Darryl L. Pierce <span dir="ltr"><<a href="mailto:dpierce@redhat.com" target="_blank">dpierce@redhat.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Our project has several subprojects to it. What I would like to do is<br>
have some of those subprojects to package up their sources, which<br>
includes a generated file, as a separate source tarball from the overall<br>
one that's created with make package_source.<br>
<br>
Can someone point me to an example of doing such a thing?<br>
<span><font color="#888888"><br>
--<br>
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.<br>
Delivering value year after year.<br>
Red Hat ranks #1 in value among software vendors.<br>
<a href="http://www.redhat.com/promo/vendor/" target="_blank">http://www.redhat.com/promo/vendor/</a><br>
<br>
</font></span><br></div></div><span class="HOEnZb"><font color="#888888">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></font></span></blockquote></div><br></div>
</blockquote></div><br></div></div>