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: [EMAIL PROTECTED]

 


From: Jan Woetzel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 1:05 PM
To: Neumann, Jan (SCR US)
Cc: [email protected]
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 [EMAIL PROTECTED]
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to