By adding the INSTALL command it works fine, both for win32 and Linux<br>Perhaps it's an idea to add the &quot;INSTALL&quot; requirement to the CPack wiki page, to avoid questions by &quot;dummies&quot; like me. (I wrongly assumed that all targets/libraries/... that were in the build directory would end up in the install package.)
<br>Or add the INSTALL(...) to the hello example, in that way the example can be used to demonstrate &quot;make install&quot; and &quot;make package&quot; (CPack) as well.<br><br>Thanks for your help!<br><br>Peter.<br><br>
<br><div><span class="gmail_quote">On 10/20/06, <b class="gmail_sendername">David Cole</b> &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well if you don't have any INSTALL commands, then there is nothing to<br>install, right?<br><br>CPack is simply a tool that transforms your CMakeLists INSTALL<br>commands into a packaged setup program... So, yes, you do need INSTALL
<br>commands.<br><br>You have to be able to run &quot;make install&quot; and end up with a non-empty<br>install tree prior to running &quot;make package&quot; successfully.<br><br>HTH,<br>David<br><br>On 10/20/06, Peter Visser &lt;
<a href="mailto:pervulgo@gmail.com">pervulgo@gmail.com</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I would like to use CPack to make an install package with NSIS for win32.<br>&gt;<br>&gt; I downloaded the hello example
<br>&gt; (<a href="http://www.cmake.org/HTML/Examples.html">http://www.cmake.org/HTML/Examples.html</a>) added<br>&gt; &quot;INCLUDE(CPack)&quot; to the CMakeLists.txt<br>&gt; (<a href="http://www.cmake.org/Wiki/CMake:Packaging_With_CPack">
http://www.cmake.org/Wiki/CMake:Packaging_With_CPack</a>) and<br>&gt; tried to run &quot;make package&quot;<br>&gt;<br>&gt; However an error occurs, according to the NSIS error log this happens:<br>&gt;&nbsp;&nbsp;File:<br>&gt; &quot;e:/Temp/cmake/CMakeExample/build/_CPack_Packages/win32/NSIS/HELLO-
0.1.1-win32\*.*&quot;<br>&gt; -&gt; no files found.<br>&gt;<br>&gt; When tried the same example under linux an empty &quot;HELLO-0.1.1-Linux.tar.gz&quot;<br>&gt; is created, so I must be doing something wrong.<br>&gt;<br>
&gt; Do I need to specify a &quot;INSTALL(...)&quot; rule in order to use CPack<br>&gt; succesfully?<br>&gt;<br>&gt; Any help appreciated,<br>&gt;<br>&gt; Peter.<br>&gt;<br>&gt; _______________________________________________
<br>&gt; CMake mailing list<br>&gt; <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>&gt;<br>&gt;<br></blockquote>
</div><br>