<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hi,<br><br>How could I control my generated object files name? Because I found in my cmake project, *.c/*.cc/*.cpp will generated to object *.c.o/*.cc.o/*.cpp.o, but I really want to get *.o. Such as:<br>$ find . -name "*.o"<br>./src/CMakeFiles/RSLcommon.dir/BasicDdm.cc.o<br>./src/CMakeFiles/RSLcommon.dir/DoubleArray.cc.o<br>./src/CMakeFiles/RSLcommon.dir/RslBoardInfo.cc.o<br>./src/CMakeFiles/RSLcommon.dir/RslMath.cc.o<br>./src/CMakeFiles/RSLcommon.dir/RslRebootReasons.cc.o<br>./src/CMakeFiles/RSLcommon.dir/RslStatusCode.cc.o<br>./src/CMakeFiles/RSLcommon.dir/RslSubsystemState.cc.o<br>./src/CMakeFiles/RSLcommon.dir/defstr.cc.o<br>./src/CMakeFiles/RSLcommon.dir/test1.c.o<br>./src/CMakeFiles/RSLcommon.dir/test2.cpp.o<br><br><br>And my CMakeLists.txt in src is below:<br><br>add_library(RSLcommon
STATIC<br> BasicDdm.cc<br> DoubleArray.cc<br> RslBoardInfo.cc<br> RslMath.cc<br> RslRebootReasons.cc<br> RslStatusCode.cc<br> RslSubsystemState.cc<br> defstr.cc<br> test1.c<br> test2.cpp)<br><br>I don't know where is the wrong. And my cmake version is 2.6.4.<br><br>Another question is if I don't want to generated static or shared library neither, I only want to compiling source code(*.cc) to object files(*.o), what should I do?<br><br>Thanks in advance.<br><br><br><div><div><div><font size="3"><font size="2" color="#b9b9b9" face="comic sans ms">If you know the means of @, then you know the
means of Internet.</font></font></div><div><font color="#b9b9b9" face="comic sans ms">http://hgye.blogspot.com</font></div></div></div></td></tr></table><br>
<hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/"> 好玩贺卡等你发,邮箱贺卡全新上线!</a>