[CMake] CPack: Building Multiple Packages

Bill Hoffman bill.hoffman at kitware.com
Thu Apr 3 15:14:09 EDT 2008


Alexander Neundorf wrote:
> On Thursday 03 April 2008, Mike Arthur wrote:
>> Hey guys,
>> First of all, nice work on CMake/CPack, great tools.
>>
>> I'm having some problems attempting to get CPack to build multiple packages
>> and I'm wondering what I'm trying to do is possible.
>>
>> The folder layout (for this example) is the following:
>> src/
>> src/host/
>> src/client/
>>
>> There are CMakeLists in src/host and src/client to build the packages
>> independantly so I can package up those directories as source and send them
>> off and have them build independently.
>>
>> However, what I want to be able to do is have a CMakeLists file in src
>> which, when running "make package" in src will build SEPERATE packages for
>> host AND client.
>>
>> Is this possible or am I barking up the wrong tree?
> 
> AFAIK this is currently not possible. Please file a feature request on 
> http://public.kitware.com/Bug/ for the category "CPack".
> 

I think you can create a CPackConfig.cmake file for each and run cpack 
on them directly and it should work. make package won't do the right 
thing, but you should be able to create cpack input files for as many 
parts of a system as you want.

-Bill


More information about the CMake mailing list