[CMake] CPack: Create debian packge for each sub-project

Craig Scott craig.scott at crascit.com
Sun Jul 23 17:10:37 EDT 2017


On Mon, Jul 24, 2017 at 6:13 AM, Gonzalo Garramuño <ggarra13 at gmail.com>
wrote:

>
>
> El 23/07/17 a las 12:37, DKLind escribió:
>
>> I forgot, I also have a question about "make package". How do I build and
>> package just an individual sub-project. As expected, "make <sub-project>"
>> works to build, but there isn't a default target to package an individual
>> sub-project.
>>
> AFAIK, it is not possible. I would also like to know this for separate
> packager generators. How to call "make package" on just one package
> generator (like build just DEB and not RPM).
>
>
If you want to pick the package generator, run cpack directly rather than
"make package". You'd need to manually run just "make" first to ensure the
packaged targets are built. You may want/need other options too when using
some CMake generators (e.g. -C for the build configuration with Xcode or
Visual Studio most likely).

make
cpack -G RPM



-- 
Craig Scott
Melbourne, Australia
https://crascit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170724/92c702ca/attachment.html>


More information about the CMake mailing list