&quot;CPack only packages what is installed&quot; ahh thanks, that&#39;s the little tidbit I was missing. Thanks!<br><br><br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 10:19 AM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mike is right... you&#39;ll need to build your code first.<div><br></div><div>But, also:</div>

<div>You are missing install rules in your CMakeLists.txt file. CPack only packages what is installed.</div><div><br></div><div>
<br></div><div>HTH,</div><div>David</div><div><div></div><div><div><br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 11:16 AM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Don&#39;t you need to actually _compile_ your code first? I don&#39;t think cpack will automatically build your project for you. Just a guess.<br>



<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<div><div></div><div><br>
<br>
<br>
<br>
On Jun 10, 2009, at 10:50 AM, Mark Lohry wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
1) where is the best place for documentation for cmake/cpack? Is there any free equivalent to the autotools book? the sporatic examples coupled with sparse documentation hasn&#39;t made the transition as simple as expected :)<br>



<br>
2) sorry for the novice nature of this question, but I&#39;m just not seeing what I&#39;m missing when trying to build a package with cmake/cpack. After running &quot;cmake .&quot;, and &quot;cpack&quot; or &quot;make package&quot;, I end up with empty packages. The tar.gz and tar.Z archives are empty. I was expecting the same behavior as &quot;make dist&quot; with autotools. Any help with this embarassingly simple question would be appreciated.<br>



<br>
<br>
<br>
CMakeLists.txt:<br>
cmake_minimum_required( VERSION 2.6 )<br>
project( hello )<br>
set( hello_SRCS hello.cpp )<br>
add_executable( hello ${hello_SRCS} )<br>
include( CPack )<br>
<br>
<br>
bash-3.2$ cmake .<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /home/mlohry/temp/cmake/cxx<br>
<br>
bash-3.2$ cpack<br>
CPack: Create package using STGZ<br>
CPack: Install projects<br>
CPack: - Run preinstall target for: hello<br>
CPack: - Install project: hello<br>
CPack: Compress package<br>
CPack: Finalize package<br>
CPack: Package /home/mlohry/temp/cmake/cxx/<a href="http://hello-0.1.1-Linux.sh" target="_blank">hello-0.1.1-Linux.sh</a> generated.<br>
CPack: Create package using TGZ<br>
CPack: Install projects<br>
CPack: - Run preinstall target for: hello<br>
CPack: - Install project: hello<br>
CPack: Compress package<br>
CPack: Finalize package<br>
CPack: Package /home/mlohry/temp/cmake/cxx/hello-0.1.1-Linux.tar.gz generated.<br>
CPack: Create package using TZ<br>
CPack: Install projects<br>
CPack: - Run preinstall target for: hello<br>
CPack: - Install project: hello<br>
CPack: Compress package<br>
CPack: Finalize package<br>
CPack: Package /home/mlohry/temp/cmake/cxx/hello-0.1.1-Linux.tar.Z generated.<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 <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: <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>
</blockquote>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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>
</blockquote></div><br></div>
</div></div></blockquote></div><br>