[CMake] Problem with including resource files for visual studio .NET when using 2.4.2

Neumann, Jan (SCR US) jan.neumann at siemens.com
Thu Jul 13 13:22:03 EDT 2006


Thanks, for your help. Yes, just including the .rc file did the trick.
Now everything works fine.
 
Jan
 

---------------------------------------

Jan Neumann, PhD
Member of Technical Staff

Siemens Corporate Research
755 College Rd East
Princeton, NJ 08540, USA

Phone: +1 (609) 734 3653
Cell: +1 (240) 274 2806
Fax: +1 (609) 734 6565 
Email: jan.neumann at siemens.com


 

________________________________

From: Jan Woetzel [mailto:jw at mip.informatik.uni-kiel.de] 
Sent: Thursday, July 13, 2006 1:05 PM
To: Neumann, Jan (SCR US)
Cc: cmake at cmake.org
Subject: Re: [CMake] Problem with including resource files for visual
studio .NET when using 2.4.2


Neumann, Jan (SCR US) wrote:




	I assume this come from the fact that I simply  include all the
resource files (both binary and text files)
	...
	
	SET(PedDetectVDO_RESOURCES
	VehicleDetectApp.rc
	res/VehicleDetectApp.ico
	res/VehicleDetectApp.rc2
	res/Toolbar.bmp
	res/VehicleDetectApp.manifest
	res/VehicleDetectAppDoc.ico
	)

Hi Jan,
I think the toplevel .rc already contains the other resources (.ico,
.bmp, .. ) right? 
Did you try to add only the .rc to the sources?




	IF (VISUAL_IDE)
	  ADD_EXECUTABLE(PedDetectVDO  WIN32
	              ${PedDetectVDO_SRCS} 
	              ${PedDetectVDO_HEADER}
	              ${PedDetectVDO_RESOURCES})
	ELSE (VISUAL_IDE)
	  ADD_EXECUTABLE(PedDetectVDO  WIN32
	              ${PedDetectVDO_SRCS})
	ENDIF (VISUAL_IDE)

By the way - 
This looks very much like you are using my "DefineFlags.cmake" from our
BIAS library.
It doesn't harm - but you don't need the IF on VISUAL_IDE for headers
anymore.
CMake 2.4.2 is automatically ignoring .h and .hh files in makefile
generators, now.
However, you may need the IF for .rc files.

Best, 
Jan.

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw at mip.informatik.uni-kiel.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060713/6ba119be/attachment.html


More information about the CMake mailing list