[CMake] How to on multiple RPM packages

Eric Noulard eric.noulard at gmail.com
Fri Jan 15 05:36:02 EST 2016


Hi Thomas,

CPack RPM may generate several packages at once if you define COMPONENTS in
your project.

The behavior of CPackRPM w.r.t. COMPONENT packaging depends on

Some CPack COMPONENT generic variables, namelly:
CPACK_RPM_COMPONENT_INSTALL --> this one must be set to ON
CPACK_COMPONENTS_* variables
see: https://cmake.org/cmake/help/v3.4/module/CPackComponent.html

The bunch of RPM specific variables
CPACK_RPM_<component>_* variables
see  https://cmake.org/cmake/help/v3.4/module/CPackRPM.html

More references (some may be outdated) there:
https://cmake.org/Wiki/CMake:Component_Install_With_CPack
https://cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
http://cmake.3232098.n2.nabble.com/CPack-RPM-with-COMPONENTS-packaging-td7583729.html

2016-01-15 9:05 GMT+01:00 Thomas Lehmann <thomas.lehmann at adtech.com>:
>
> Hi,
>
> We are currently looking forward to migrate to CMake and
> we are struggling a bit with cpack.
>
> The first project we migrate provides a executable binary but also
> a library and its headers.
>
> I do not find an example on how to provide separate RPM's
> for them; one for the binary and one for the headers+library.
> The required results (rough example):
>
> - foo-1.2.3.4-1.x86_64.rpm
> - libfoo-1.2.3.4-1.x86.64.rpm
>
> Anybody who can help us with this?
>
> Regards,
> Thomas
>
> --
>
> Powered by 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/20160115/cdb82449/attachment.html>


More information about the CMake mailing list