[CMake] How to set Windows DLL version information

David Cole david.cole at kitware.com
Fri Dec 26 11:02:13 EST 2008


Add an *.rc file with the correct VS_VERSIONINFO resource in it as a source
file for your dll...
set(source_files
  blah1.cpp
  blah2.cpp
  mydll.rc
  )
add_library(mydll SHARED ${source_files})


On Fri, Dec 26, 2008 at 1:50 AM, sherman wilcox <wilcox.sherman at gmail.com>wrote:

> Hi, I am trying to find information about how to add version
> information to Windows DLLs. Something like adding a resource to the
> DLL so that specific version information (product version, name, etc.)
> shows up when the DLL properties are displayed. Simple file-version
> resource stuff (VS_VERSIONINFO) - I see a line in the changelog that
> indicates CMake seems to support something like this. The line I'm
> referring to is:  "add support for windows dll version numbers" - I'm
> not having much luck locating any information on the topic though. Can
> anyone nudge me in the right direction?
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081226/36b40482/attachment-0001.htm>


More information about the CMake mailing list