Oddly, I was just doing that last night. Here's an example:<div><a href="https://github.com/shadowmint/cmake-multi-install">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 class="nb" style="margin:0px;padding:0px;border:0px;color:rgb(0,134,179);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">set</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="s" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">CPACK_RPM_COMPONENT_INSTALL</span><span style="color:rgb(51,51,51);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="s" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">ON</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,Menlo,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">)</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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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 class="HOEnZb"><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>--<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></blockquote></div><br></div>