[CMake] Support for rc-files with mingw?
William A. Hoffman
billlist at nycap.rr.com
Sat Jul 15 15:14:47 EDT 2006
At 02:36 PM 7/15/2006, Christian Ehrlicher wrote:
>William A. Hoffman schrieb:
>> At 11:47 AM 7/15/2006, Christian Ehrlicher wrote:
>>> Hi,
>>>
>>> I've a project where I want to add a rc-file. This works fine with msvc
>>> but it seems that cmake doesn't handle this for mingw.
>>>
>>> ADD_EXECUTABLE(foo WIN32 foo.cpp foo.rc)
>>>
>>> Isn't ths supported by cmake or is something wrong with my statement?
>>>
>>> Thx,
>>> Christian
>>
>>
>> That is currently un-implemented for mingw. Works with borland and
>> ms. It would not be too hard to add, but last time I tried it did
>> not work. It is treated like a language. You could try this:
>> PROJECT(foo C CXX RC)
>>
>> And see what happens. For MS and Borland, the rc language is automatically
>> enabled.
>>
>I'll try this and when it won't work I'll call windres.exe by myself and
>add the resulting obj-file to the target on link-time.
If you give me the correct command line for windres, I should be able to
get it working. As well as a small example program that I can add into
the CMake tests.
-Bill
More information about the CMake
mailing list