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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
