Hi,<br>I use use CPack to generate multiple packages (abusing COMPONENT).<br>My project dirs are like that:<br>Libs/<br>ProjectA/<br>ProjectB/<br><br>ProjectA
and B need the libs from Libs. So when I create a package for ProjectA
/ ProjectB I need the packaging to include libs from Libs.
<br>So in Libs/CMakeLists.txt:<br>INSTALL(<br>&nbsp;&nbsp;&nbsp; PROGRAMS ${LIBRARY_OUTPUT_PATH}/libLibs<div id="1fi4" class="ArwC7c ckChnd">.so<br>&nbsp;&nbsp;&nbsp; DESTINATION &quot;usr/lib&quot;<br>&nbsp;&nbsp;&nbsp; COMPONENT &quot;Libs&quot;<br>&nbsp;&nbsp;&nbsp; )<br>In my ProjectA/CMakeLists.txt:
<br># To allow different 
CPackConfig.cmake files (not over-written by another project<br>SET( CPACK_OUTPUT_CONFIG_FILE &quot;${PROJECT_BINARY_DIR}/CPackConfig.cmake&quot; )<br>INSTALL(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROGRAMS ${EXECUTABLE_OUTPUT_PATH}/ProjectsA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DESTINATION &quot;usr/bin&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMPONENT &quot;ProjectA&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br>And in my CMakeLists.txt:<br>ADD_CUSTOM_TARGET(<br>&nbsp;&nbsp;&nbsp; packageProjectA<br>&nbsp;&nbsp;&nbsp; COMMAND cmake -E remove_directory ${CMAKE_INSTALL_PREFIX}<br>&nbsp;&nbsp;&nbsp; COMMAND cmake -DCOMPONENT=&quot;ProjectA&quot; -P cmake_install.cmake
<br>&nbsp;&nbsp;&nbsp; COMMAND cmake -DCOMPONENT=&quot;Libs&quot; -P cmake_install.cmake<br>&nbsp;&nbsp;&nbsp; COMMAND cpack --config ${PROJECT_BUILD_DIR}/GasSensorController/CPackConfig.cmake<br>&nbsp;&nbsp;&nbsp; )<br><br>That&#39;s very dirty but works for me.<br>

Raph</div><br><br><div class="gmail_quote">On Jan 17, 2008 7:35 AM, Eric Noulard &lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/1/16, Filipe Sousa &lt;<a href="mailto:natros@gmail.com">natros@gmail.com</a>&gt;:<br><div class="Ih2E3d">&gt; Ted Berg wrote:<br>&gt; &gt; Filipe Sousa wrote:<br>&gt; &gt;<br>&gt; &gt; I aplogize, my initial post wasn&#39;t terribly clear. &nbsp;I&#39;m currently
<br>&gt; &gt; generating, for example, the following packages:<br>&gt; &gt;<br>&gt; &gt; foo-sdk-1.0.0.zip<br>&gt; &gt; foo-qa-tools-1.0.0.zip<br>&gt; &gt; foo-killer-app-1.0.0.zip<br>&gt; &gt;<br>&gt; &gt; These packages have different content and are targeted at different
<br>&gt; &gt; users. &nbsp;I initially thought I could duplicate this behavior using<br>&gt; &gt; COMPONENTs in CMake&#39;s install command, but it&#39;s not behaving how I would<br>&gt; &gt; like and I&#39;m pretty sure that what I want is abusing the feature (at best).
<br><br></div>I am really interested in how you did emulate the feature using<br>INSTALL / COMPONENT.<br>Do you have any CMakeLists.txt and/or CMake macro scripts examples?<br>Could you tell us how with those do you invoke cpack or make
<br>in order to build you packages?<br><div class="Ih2E3d"><br>&gt; Ah! I know what you mean but I don&#39;t think there is an easy way of doing<br>&gt; that. But it&#39;s very useful split a package into small packages (debian
<br>&gt; way -- libfoo.tar.gz, foo.tar.gz, libfoo-dev, foo-docs).<br><br></div>I think it&#39;s useful too, but is it specific generator task or is<br>it CPack task to do this? (this is an open question).<br><font color="#888888">
<br><br>--<br>Erk<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">
http://www.cmake.org/mailman/listinfo/cmake</a><br></div></div></blockquote></div><br>