title: How to Generate Windows DLL versioning information with CMake
body: <p>I'm using CMake to build a shared library, however for the Windows DLL I need the versioning information, like:</p>
  
  <ul>
  <li>FileDescription</li>
  <li>FileVersion</li>
  <li>InternalName</li>
  <li>LegalCopyright</li>
  <li>OriginalFilename</li>
  <li>ProductName</li>
  <li>ProductVersion</li>
  </ul>
  
  <p>So far, all I have are the VERSION and SOVERSION properties, but these don't seem to correlate to the FileVersion information I was expecting.</p>
  
  <pre><code>set(LIC_TARGET MySharedLib)
  add_library(${LIC_TARGET} SHARED ${SOURCES} )
  
  SET_TARGET_PROPERTIES(${LIC_TARGET}
      PROPERTIES
      VERSION ${MY_PRODUCT_NUMBER}.${MY_PRODUCT_VERSION}.${MY_BUILD_NUMBER}
      SOVERSION ${MY_PRODUCT_NUMBER})
  </code></pre>
  
  <p>I've found <a href="http://msdn.microsoft.com/en-us/library/aa381058(v=vs.85).aspx" rel="noreferrer">manual methods</a> (see example at the bottom) but would prefer to contain this within CMake.</p>
  
  <p>Help?</p>