That solves my problem, thank you!<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 4:56 PM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/11/2 Ralph Zhang <<a href="mailto:ralph.j.zhang@gmail.com">ralph.j.zhang@gmail.com</a>>:<br>
<div class="im">> Hi guys<br>
><br>
> I'm working on a project which generates quite a few executables, libraries<br>
> and configs, they need to be packed into different packages for deployment.<br>
> The problem is, the inclusion of those targets/files is not mutual<br>
> exclusive. One target/file can belong to multiple packages.<br>
><br>
> I'm using CMake 2.8.9 and trying CPack.<br>
<br>
</div>Which cpack generator are you targeting? NSIS, PackageMaker, RPM, DEB, ZIP?<br>
<div class="im"><br>
> I know it's kind of doable with<br>
> install types. But my platform is Ubuntu, so on Archives/Debs are acceptable<br>
> and they don't seem to support that.<br>
><br>
> With components/groups/parent groups it seems only possible to pack one<br>
> target/file into one component/group.<br>
><br>
> Is there any way out of this?<br>
<br>
</div>I bet that currently you'll have to run cpack as many time as you have packages.<br>
<br>
1) Define the components that you need<br>
<br>
2) Define CPACK_INSTALL_CMAKE_PROJECTS (and possibly other CPACK_xxx)<br>
variables when launching CPack (could be done using a custom command)<br>
Using this var you can decide which component will be installed so<br>
that you can<br>
include/exclude component.<br>
You may override "CPACK_COMPONENTS_ALL" as well.<br>
<br>
this can be done on the command line<br>
cpack -D CPACK_INSTALL_CMAKE_PROJECTS="..."<br>
<br>
or from within a CPACK_PROJECT_CONFIG_FILE.<br>
<br>
more info:<br>
cpack --help-variable CPACK_COMPONENTS_ALL<br>
cpack --help-variable CPACK_INSTALL_CMAKE_PROJECTS<br>
cpack --help-variable CPACK_PROJECT_CONFIG_FILE<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></span></blockquote></div><br></div>