[Cmake] rc file under cygwin

Mathieu Malaterre Mathieu . Malaterre at creatis . insa-lyon . fr
Wed, 12 Nov 2003 10:49:59 +0100


Hi all,

	I have a project that use a 'rc' file, cmake is able to pass this file 
to VC++6 very smoothly. But not under CYGWIN.

	I understand I can use a CUSTOM_COMMAND, but shouldn't it be part of 
CMake source ? Typical Makefile (from wxWindows) are:

RESCOMP     = windres
RESFLAGS    = --include-dir $(top_srcdir)/include --include-dir
$(top_srcdir)/$(program_dir) --define __WIN32__ --define __WIN95__
--define __GNUWIN32__

.rc_resources.o:
$(RESCOMP) -i $< -o $@ $(RESFLAGS)

e.g.
windres -i project.rc -o project_resources.o
--include-dir myinclude --include-dir .
--define __WIN32__ --define __WIN95__ --define __GNUWIN32__

HTH
mathieu