[CMake] cpack multiple packages

Dvir Yitzchaki Dvir.Yitzchaki at ceva-dsp.com
Wed Dec 21 06:29:40 EST 2016


Thanks, but as I understand a component can only belong to one group.
How can I get the same component/target on multiple packages?

From: Eric Noulard [mailto:eric.noulard at gmail.com]
Sent: Wednesday, December 21, 2016 10:42 AM
To: Dvir Yitzchaki <Dvir.Yitzchaki at ceva-dsp.com>
Cc: cmake at cmake.org
Subject: Re: [CMake] cpack multiple packages

When playing with component you have 3 major way to package which are governed by the value
of CPACK_COMPONENTS_GROUPING:


1 package per component -> set(CPACK_COMPONENTS_GROUPING IGNORE)
1 package for all -> set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
1 package per component group the default behavior.

In order to get 1 package per group you have to specify group when specifying component, more information
here:
https://cmake.org/cmake/help/v3.7/module/CPackComponent.html
https://cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging

2016-12-21 9:14 GMT+01:00 Dvir Yitzchaki <Dvir.Yitzchaki at ceva-dsp.com<mailto:Dvir.Yitzchaki at ceva-dsp.com>>:
Hi.

I have a big project which produces several zip packages.
Some files are common to all packages while others are unique per package.

Is there a way to create these packages using cpack?

I tried to use components but it seems that either it puts all components in one package or makes one package per component.

Thanks,

Dvir

--

Powered by www.kitware.com<http://www.kitware.com>

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



--
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161221/033bd93f/attachment-0001.html>


More information about the CMake mailing list