Thanks, David.<br><br>James<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 2:43 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There's not presently a way to add "package" to "all" -- but you can<br>
easily add a custom target that calls:<br>
<br>
cmake --build . --config Release --target package<br>
<br>
Or directly calls cpack with appropriate arguments.<br>
<br>
And with a custom target, you can make it part of all....<br>
<br>
<br>
HTH,<br>
David<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 25, 2011 at 4:13 PM, James Bigler <<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>> wrote:<br>
> Does anyone know of a way to have the package target built by default? In<br>
> other words add it to the ADD_BUILD built in target? I'm guessing since<br>
> there isn't support for adding custom targets to built in CMake targets that<br>
> this would have to be controlled by some magic CMAKE_ variable.<br>
><br>
> Thanks,<br>
> James<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
</blockquote></div><br>