By adding the INSTALL command it works fine, both for win32 and Linux<br>Perhaps it's an idea to add the "INSTALL" requirement to the CPack wiki page, to avoid questions by "dummies" 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 "make install" and "make package" (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> <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> 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 "make install" and end up with a non-empty<br>install tree prior to running "make package" successfully.<br><br>HTH,<br>David<br><br>On 10/20/06, Peter Visser <
<a href="mailto:pervulgo@gmail.com">pervulgo@gmail.com</a>> wrote:<br>> Hello,<br>><br>> I would like to use CPack to make an install package with NSIS for win32.<br>><br>> I downloaded the hello example
<br>> (<a href="http://www.cmake.org/HTML/Examples.html">http://www.cmake.org/HTML/Examples.html</a>) added<br>> "INCLUDE(CPack)" to the CMakeLists.txt<br>> (<a href="http://www.cmake.org/Wiki/CMake:Packaging_With_CPack">
http://www.cmake.org/Wiki/CMake:Packaging_With_CPack</a>) and<br>> tried to run "make package"<br>><br>> However an error occurs, according to the NSIS error log this happens:<br>> File:<br>> "e:/Temp/cmake/CMakeExample/build/_CPack_Packages/win32/NSIS/HELLO-
0.1.1-win32\*.*"<br>> -> no files found.<br>><br>> When tried the same example under linux an empty "HELLO-0.1.1-Linux.tar.gz"<br>> is created, so I must be doing something wrong.<br>><br>
> Do I need to specify a "INSTALL(...)" rule in order to use CPack<br>> succesfully?<br>><br>> Any help appreciated,<br>><br>> Peter.<br>><br>> _______________________________________________
<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">http://www.cmake.org/mailman/listinfo/cmake</a><br>><br>><br></blockquote>
</div><br>