<DIV>dear all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I developed an image segmentation project using ITK. I used MFC with VC++ 6.0 for the GUI. I compiled my project with CMAKE and it all works fine. But i want to use Rational Rose to do some Software redesign using its case tools. But when i generated the class model in rational rose for the project i was surprised to see that none of my MFC classes were shown. I found one reason for this:</DIV>
<DIV>&nbsp;</DIV>
<DIV>when i link ITK with MFC as described from the mailing lists, i found it wierd that none of the MFC classes would be displayed in the class view of the VC++ project workspace window. I tried to tweak the VC++ project files for this but i cant figure out from which tags the VC++ IDE generates the clas view.</DIV>
<DIV>&nbsp;</DIV>
<DIV>My CMakeList is as follows:</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>PROJECT( FatDetection )</DIV>
<DIV>ADD_DEFINITIONS(-D_AFXDLL) </DIV>
<DIV>SET(CMAKE_MFC_FLAG 6)</DIV>
<DIV>#<BR>#&nbsp; Define the list of source files<BR>#<BR>SET(APPLICATION_SOURCES<BR>&nbsp;&nbsp; GlobalMahalanobisImageFilter.txx<BR>&nbsp;&nbsp; GlobalMahalanobisImageFilter.h<BR>&nbsp;&nbsp; GlobalMahalanobisImageFilter2.txx<BR>&nbsp;&nbsp; GlobalMahalanobisImageFilter2.h<BR>&nbsp;&nbsp; Functions.cxx<BR>&nbsp;&nbsp; HeaderFiles.H<BR>&nbsp;&nbsp; StdAfx.cpp<BR>&nbsp;&nbsp; FatDetection.cpp&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; FatDetection.rc&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; FatDetectionDoc.cpp<BR>&nbsp;&nbsp; MainFrm.cpp<BR>&nbsp;&nbsp; FatDetectionView.cpp<BR>&nbsp;&nbsp; ITKImageView.cpp<BR>&nbsp;&nbsp; ST_SplitterWnd.CPP<BR>&nbsp;&nbsp; ReportPage.cpp<BR>&nbsp;&nbsp; VolumeInspectionPage.cpp<BR>&nbsp;&nbsp; VolumeAnalysisPage.cpp<BR>&nbsp;&nbsp; AbdomenalanalysisPage.cpp<BR>&nbsp;&nbsp; SelectOperationModeSheet.cpp<BR>&nbsp;&nbsp; FatDetectionOpSheetView.cpp<BR>&nbsp;&nbsp; SelectAnalysisModeSheet.cpp<BR>&nbsp;&nbsp; CardiacAnalysisPage.cpp<BR>&nbsp;&nbsp;
 CardiacAnalysisSliceView.cpp&nbsp;<BR>&nbsp;&nbsp; DirDialog.cpp&nbsp;&nbsp; <BR>&nbsp;&nbsp; AbdomenSelectorView.cpp<BR>&nbsp; )</DIV>
<DIV>IF(WIN32)<BR>&nbsp; LINK_LIBRARIES(<BR>&nbsp;&nbsp;&nbsp; wsock32<BR>&nbsp; )<BR>ENDIF(WIN32)</DIV>
<DIV><BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>&nbsp;&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without ITK.&nbsp; Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</DIV>
<DIV><BR>INCLUDE_DIRECTORIES(<BR>${GlobalMahalanobisTest_SOURCE_DIR}<BR>"C:\\MATLAB7\\extern\\include"<BR>)</DIV>
<DIV><BR>LINK_DIRECTORIES("C:\\MATLAB7\\extern\\lib\\win32\\microsoft\\msvc70")</DIV>
<DIV>ADD_EXECUTABLE (FatDetection WIN32 ${APPLICATION_SOURCES})<BR>TARGET_LINK_LIBRARIES(FatDetection ITKCommon ITKIO ITKNumerics ITKAlgorithms ITKBasicFilters libmx libmat libmex libeng )</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please check this and do tell me if&nbsp;u find a solution for this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Deepak Roy Chittajallu</DIV>
<DIV>cdeepakroy@yahoo.com</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - 250MB free storage. <a href="http://us.rd.yahoo.com/evt=29915/*http://info.mail.yahoo.com/mail_250">Do more. Manage less.</a>