[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] CPack Generator-specific install commands
From: Eric Noulard <eric.noulard () gmail ! com>
Date: 2013-03-29 20:30:02
Message-ID: CAPASGLq8n06s7hyaaZ+TT1Z3HN+ofLOhiKhooNpAkiotxKBqUQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
2013/3/29 John Bruce <jbruce@barracuda.com>
> Hello,****
>
> ** **
>
> I have a project that I’m packaging both as a DEB file and a tgz file.
> I’ve included all necessary install() commands in my CMakeLists.txt, and
> have specified “DEB;TGZ” as the generators for CPack. ****
>
> ** **
>
> I understand that if I want to include generator-specific CPack commands,
> I’ll have to include them in a Cpack_Project_config_file, which I have done
> as well. However, I’m not able to include install() commands in this file
> for some reason.
>
Install command are "CMaket-time" commands, i.e. they run when CMake runs.
Cpack_Project_config_file may only contain CPack-time command because it
gets read when CPack runs.
If you want to include/exclude some part of your files/target in a specific
installer you should
**always** provide install command in your CMakeLists.txt but use the
COMPONENT argument
of this command.
Then use/override CPACK_COMPONENTS_ALL in your Cpack_Project_config_file so
that
only the component you want are installed.
see doc:
cpack --help-variable CPACK_COMPONENTS_ALL
> I’d like to include an additional file in only the tgz package. Is there a
> way to do this (without resorting to post-cmake/cpack scripting)?
>
So yes, COMPONENTized install should makes it possible.
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_extra"><br><br><div \
class="gmail_quote">2013/3/29 John Bruce <span dir="ltr"><<a \
href="mailto:jbruce@barracuda.com" \
target="_blank">jbruce@barracuda.com</a>></span><br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> <div link="blue" vlink="purple" \
lang="EN-US"><div><p class="">Hello,<u></u><u></u></p><p class=""><u></u> \
<u></u></p><p class="">I have a project that I’m packaging both as a DEB file and a \
tgz file. I’ve included all necessary install() commands in my CMakeLists.txt, and \
have specified “DEB;TGZ” as the generators for CPack. <u></u><u></u></p> <p \
class=""><u></u> <u></u></p><p class="">I understand that if I want to include \
generator-specific CPack commands, I’ll have to include them in a \
Cpack_Project_config_file, which I have done as well. However, I’m not able to \
include install() commands in this file for some reason.</p> \
</div></div></blockquote><div><br></div><div>Install command are \
"CMaket-time" commands, i.e. they run when CMake \
runs.<br>Cpack_Project_config_file may only contain CPack-time command because it \
gets read when CPack runs.<br> <br></div><div>If you want to include/exclude some \
part of your files/target in a specific installer you should<br></div><div>**always** \
provide install command in your CMakeLists.txt but use the COMPONENT \
argument<br></div> <div>of this command.<br><br></div><div>Then use/override \
CPACK_COMPONENTS_ALL in your Cpack_Project_config_file so that<br></div><div>only the \
component you want are installed.<br><br></div><div> see doc:<br>cpack \
--help-variable CPACK_COMPONENTS_ALL<br> </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" \
lang="EN-US"><div><p class="">I’d like to include an additional file in only the tgz \
package. Is there a way to do this (without resorting to post-cmake/cpack \
scripting)?<br> </p></div></div></blockquote><div><br></div><div>So yes, \
COMPONENTized install should makes it possible.<br></div></div><br><br>-- \
<br>Erk<br>Le gouvernement représentatif n'est pas la démocratie -- <a \
href="http://www.le-message.org" target="_blank">http://www.le-message.org</a> \
</div></div>
--
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic