[CMake] How does cmake handle windows rc files?

William A. Hoffman billlist at nycap.rr.com
Thu Aug 31 09:32:00 EDT 2006


At 09:21 AM 8/31/2006, Jon Trauntvein wrote:
>I have been successfully using cmake to build projects on non-windows
>platforms (Linux) but have been using visual studio projects to build
>these under windows basically because these projects already existed.  I
>have been so pleased with the results of the linux builds that I am
>ready to start a new project and use cmake to configure all platforms.
>That being said,  I find myself wondering how to specify resource
>related files (.rc icons, etc.) in the CMakeLists.txt file.  I have been
>searching in the documentation/wiki and found no reference to this.
>Perhaps I am being a bit dense on the matter but I would appreciate any
>pointers on doing this.

Just put the .rc files in the source list of the target.

CMakeSetup dialog is a good example:

http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/MFCDialog/CMakeLists.txt?rev=1.10&root=CMake&view=markup

-Bill



More information about the CMake mailing list