title: How to set an Icon in NSIS install (CMake)
body: <p>The documentation for <code>CPACK_PACKAGE_ICON</code> is very limited on cmake <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#NSIS" rel="noreferrer">wiki page</a>.</p>
  
  <p>The following is not working for me (as <a href="https://stackoverflow.com/a/7746353/136285">per</a>):</p>
  
  <pre><code>set(CPACK_PACKAGE_ICON  "${CMAKE_CURRENT_SOURCE_DIR}/images/MyIcon.bmp")
  include(CPack)
  </code></pre>
  
  <p>It leads to:</p>
  
  <pre><code>File: "C:/proj/my_library/images/MyIcon.bmp" -&gt; no files found.
  Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
     /oname=outfile one_file_only)
  Error in macro MUI_HEADERIMAGE_INIT on macroline 24
  Error in macro MUI_GUIINIT on macroline 3
  Error in macro MUI_FUNCTION_GUIINIT on macroline 4
  Error in macro MUI_INSERT on macroline 11
  Error in macro MUI_LANGUAGE on macroline 7
  Error in script "C:/proj/bin-win/_CPack_Packages/win32/NSIS/project.nsi" on line 574 -- aborting creation process
  </code></pre>
  
  <p>So how does one actually set a working icon during the install process of a NSIS installer ? Also what format is actually needed for the icon ?</p>