<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3676" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=750341308-05052010><FONT size=2>Hi there:</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2> I am new to cmake and I
am using Kdevelop, actually , I am new to linux.</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010> <FONT size=2>In my project, there are
some ice slice files which must be custom parsed and generate some cpp/h
files.</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2> So I use the command
below to tell cmake to call slice2cpp to generate the cpp/h files.
</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010> <FONT size=2>But every times I build
the project, no cpp/h files were generate, and I event can not find
why.</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2> The only error message I
can see is to tell me that the target source file was not found ( because this
file was not generated )</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2> I can't figure out wht
happend, and I even don't know to to trace the poblem </FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2> Any help on this is
appreciated</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2></FONT></SPAN><SPAN
class=750341308-05052010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2>add_custom_command( OUTPUT
../TianShanIce.cpp</FONT></SPAN></DIV>
<DIV><SPAN
class=750341308-05052010>
<FONT size=2>COMMAND /opt/Ice-3.3/bin/slice2cpp -I /opt/Ice-3.3/slice/ -I../
--output-dir ../ ../TianShanIce.ICE</FONT></SPAN></DIV>
<DIV><SPAN
class=750341308-05052010>
<FONT size=2>DEPENDS ../TianShanIce.ICE )</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2>add_library(TianShanIce SHARED
../TianShanIce.cpp)</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750341308-05052010><FONT size=2>Suds</FONT></SPAN></DIV>
<DIV><SPAN class=750341308-05052010><FONT
size=2></FONT></SPAN> </DIV></BODY></HTML>