<DIV>dear all,</DIV>
<DIV> </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> </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> </DIV>
<DIV>My CMakeList is as follows:</DIV>
<DIV> </DIV>
<DIV><BR>PROJECT( FatDetection )</DIV>
<DIV>ADD_DEFINITIONS(-D_AFXDLL) </DIV>
<DIV>SET(CMAKE_MFC_FLAG 6)</DIV>
<DIV>#<BR># Define the list of source files<BR>#<BR>SET(APPLICATION_SOURCES<BR> GlobalMahalanobisImageFilter.txx<BR> GlobalMahalanobisImageFilter.h<BR> GlobalMahalanobisImageFilter2.txx<BR> GlobalMahalanobisImageFilter2.h<BR> Functions.cxx<BR> HeaderFiles.H<BR> StdAfx.cpp<BR> FatDetection.cpp <BR> FatDetection.rc <BR> FatDetectionDoc.cpp<BR> MainFrm.cpp<BR> FatDetectionView.cpp<BR> ITKImageView.cpp<BR> ST_SplitterWnd.CPP<BR> ReportPage.cpp<BR> VolumeInspectionPage.cpp<BR> VolumeAnalysisPage.cpp<BR> AbdomenalanalysisPage.cpp<BR> SelectOperationModeSheet.cpp<BR> FatDetectionOpSheetView.cpp<BR> SelectAnalysisModeSheet.cpp<BR> CardiacAnalysisPage.cpp<BR>
CardiacAnalysisSliceView.cpp <BR> DirDialog.cpp <BR> AbdomenSelectorView.cpp<BR> )</DIV>
<DIV>IF(WIN32)<BR> LINK_LIBRARIES(<BR> wsock32<BR> )<BR>ENDIF(WIN32)</DIV>
<DIV><BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR> MESSAGE(FATAL_ERROR<BR> "Cannot build without ITK. 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> </DIV>
<DIV> </DIV>
<DIV>Please check this and do tell me if u find a solution for this.</DIV>
<DIV> </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>