[CMake] Support for rc-files with mingw?
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Sat Jul 15 14:36:55 EDT 2006
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.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20060715/f8d9b117/signature.pgp
More information about the CMake
mailing list