[Insight-users] Insight application

Thimmaiah, Sandhya sthimmaiah at neurosurgery . wayne . edu
Wed, 12 Nov 2003 17:37:25 -0500


Hi,
I have tried to run insight applications..everything works fine. I have
created dicomviewer as a seperate workspace without display but still using
fl_chooser for obtaining file name. When I run this project even though i
have fl_chooser it asks for command prompt. Can anyone let me know why this
may be happening. Same thing happens when I use cmake to configure MFC and
try to run the application.  I have attached cmake file for
dicomviewer.Thank you

PROJECT(IndDicomreader) 
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ENDIF(ITK_FOUND) 

OPTION(USE_FLTK "Use FLTK (The Fast Light Toolkit) for GUI (some
applications need this)" ON)
IF(USE_FLTK)
FIND_PACKAGE(FLTK)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ENDIF(FLTK_FOUND)
ENDIF(USE_FLTK) 

FIND_PACKAGE(OpenGL)
IF(OPENGL_FOUND)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_PATH})
ENDIF(OPENGL_FOUND) 

LINK_LIBRARIES (
ITKAlgorithms
ITKCommon
ITKBasicFilters 
)

ADD_EXECUTABLE( DicomImageViewer DicomImageViewer.cxx )
TARGET_LINK_LIBRARIES(DicomImageViewer ${ITK_LIBRARIES} ${FLTK_LIBRARIES}
${OPENGL_LIBRARIES})