<div> </div>
<div>Thanks a lot Alex ....</div>
<div> </div>
<div>It worked .....</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Deepak</div>
<div> </div>
<div> <br><br> </div>
<div><span class="gmail_quote">On 5/15/07, <b class="gmail_sendername">Alexander Neundorf</b> <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tuesday 15 May 2007 10:37, Deepak Roy wrote:<br>> Hello,<br>><br>> I am trying to compile my QT
3.3.4 project with ITK 3.2 and CMake 2.4.<br>><br>> Earlier, i could successfully build the same project using ITK 2.4 and<br>> CMake 2.0 Patch 6. However, now when i am trying to upgrade my ITK from<br>> version
2.4 to version 3.2 i am getting CMake build errors.<br>><br>> Specifically, the error is regarding the generation of MOC files using<br>> QT_WRAP_CPP.<br>><br>> Following is a simplified illustration of my
CMakeLists.txt :<br>><br>> ***************************************************************************<br>>****************<br>><br>> PROJECT(MY_PROJECT)<br>><br>> ...<br>><br>> SET(MY_PROJECT_SRCS_H
<br>><br>> a.h<br>> b.h<br>> c.h<br>><br>> )<br>><br>> SET(MY_PROJECT_SRCS_CXX<br>><br>> a.cpp<br>> b.cpp<br>> c.cpp<br>><br>> )<br>><br>> SET(MY_PROJECT_MOC_SRCS<br>><br>
> a.h<br>> b.h<br>><br>> )<br>><br>> SET(MY_PROJECT_SRCS<br>><br>> ${MY_PROJECT_SRCS_H}<br>> ${MY_PROJECT_SRCS_CXX}<br>><br>> )<br>><br>> #-------------------------------<br>> # Generate Moc Files
<br>> #-------------------------------<br>><br>> IF(QT_WRAP_CPP)<br>> QT_WRAP_CPP(MY_PROJECT ${MY_PROJECT_SRCS_CXX} ${MY_PROJECT_MOC_SRCS} )<br>> ENDIF(QT_WRAP_CPP)<br><br>Does the following work ?<br><br>
QT_WRAP_CPP(MY_PROJECT MY_PROJECT_SRCS_CXX ${MY_PROJECT_MOC_SRCS} )<br><br>According to the man page only the name of the "destination list" should be<br>used:<br> QT_WRAP_CPP(resultingLibraryName DestName<br> SourceLists ...)
<br> Produce moc files for all the .h files listed in the SourceLists. The<br> moc files will be added to the library using the DestName source list.<br><br><br>Bye<br>Alex<br>_______________________________________________
<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>