<div dir="ltr">2016-12-21 12:29 GMT+01:00 Dvir Yitzchaki <span dir="ltr"><<a href="mailto:Dvir.Yitzchaki@ceva-dsp.com" target="_blank">Dvir.Yitzchaki@ceva-dsp.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_3547476752025661901WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif;color:rgb(31,73,125)">Thanks, but as I understand a component can only belong to one group.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif;color:rgb(31,73,125)">How can I get the same component/target on multiple packages?</span></p></div></div></blockquote><div><br></div><div>Usually you wouldn't want to package same file on same location with same filename since during unpackaging they would override each other so this is not supported out of the box.<br><br>Usually in such cases I would split packages even further so that one package would be base package of others (but automatic dependency tracking between them would require something more sophisticated than zip - RPM, Deb or some other CPack supported packager perhaps).<br><br></div><div>However if you really need to do something like that you could write a function that you would call instead of install(...) command which would just forward to it and the first parameter would have a list of components to which the file should belong. For e.g. some pseudo code:<br><br></div><div>function(my_install my_list other_params_that_get_forwarded...)<br></div><div>    foreach(component_name_ IN LISTS my_list)<br></div><div>        install(other_params_that_get_forwarded... COMPONENT ${component_name_})<br></div><div>    endforeach()<br></div><div>endfunction()<br></div></div><br></div><div class="gmail_extra">my_install("first;second;and_anotherone" "TARGETS target_name" "DESTINATION some_dir")<br><br></div><div class="gmail_extra">Hope this helps.<br><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">Domen<br></div></div>