[CMake] Distinguishing between source and binary packages with CPack?

Eric Noulard eric.noulard at gmail.com
Tue Nov 11 12:39:11 EST 2014


2014-11-11 17:55 GMT+01:00 SF Markus Elfring <elfring at users.sourceforge.net>
:

> >>
> https://github.com/elfring/OTCL/blob/eca1ed17f70176435c8575eb55a67cca33926905/package_settings.cmake#L1
> >
> > That may be sufficient for creating a .deb. For integration into Debian,
> you should read
> > http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/
>
> Thanks for your link.
>
>
> Can it be that the CPack software concentrates on the creation of binary
> packages
> for the formats "DEB", "NSIS" and "RPM" so far?
>

It depends on the platform you are running on but no,
there are more generator than those 3 see partial list here:
http://www.cmake.org/Wiki/CMake:CPackPackageGenerators

you should add at least WiX and IFW that can be seen, from source.
(see <CMakeSource>/Source/CPack/*)


> It seems that options (like CPACK_SOURCE_TBZ2) can be set for archive
> formats.
>

You can read the doc about CPACK_xxx variables.
For 2.8.x: http://www.cmake.org/cmake/help/v2.8.12/cpack.html
For 3.0.x:
   http://www.cmake.org/cmake/help/v3.0/manual/cpack.1.html
and all CPackXXXX modules in:
   http://www.cmake.org/cmake/help/v3.0/manual/cmake-modules.7.html
and some global vars as well:

http://www.cmake.org/cmake/help/v3.0/manual/cmake-variables.7.html#variables-for-cpack
or may be a search will do as well:
   http://www.cmake.org/cmake/help/v3.0/search.html?q=CPACK


-- 
Eric
L'élection n'est pas la démocratie -- http://www.le-message.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141111/75df1324/attachment-0001.html>


More information about the CMake mailing list