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.

~
Doug.

On Fri, Jun 15, 2012 at 9:05 AM, Doug <douglas.lin...@gmail.com> wrote:

> Oddly, I was just doing that last night. Here's an example:
> https://github.com/shadowmint/cmake-multi-install
>
> If you run:
> mkdir build
> cd build
> cmake ..
> cmake -G DEB
>
> It'll build two debian packages.
> If you want RPMs I suspect you'll have to add:
>
>  set(CPACK_RPM_COMPONENT_INSTALL ON)
>
> ...but you get the idea.
> No idea why this isn't in the wiki. It keeps turning up as a question...
>
> Also, it doesn't work on all the pack builders.
>
> ~
> Doug.
>
> On Fri, Jun 15, 2012 at 2:57 AM, Darryl L. Pierce <dpie...@redhat.com>wrote:
>
>> Our project has several subprojects to it. What I would like to do is
>> have some of those subprojects to package up their sources, which
>> includes a generated file, as a separate source tarball from the overall
>> one that's created with make package_source.
>>
>> Can someone point me to an example of doing such a thing?
>>
>> --
>> Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
>> Delivering value year after year.
>> Red Hat ranks #1 in value among software vendors.
>> http://www.redhat.com/promo/vendor/
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to