IF  (DCMTK_FOUND)

    INCLUDE_DIRECTORIES( ${DCMTK_ROOT_INCLUDE_DIR} )

    SET(TARGET_SRC ReaderWriterDICOM.cpp )

    LINK_LIBRARIES(${DCMTK_LIBRARIES})

    ADD_DEFINITIONS(-DUSE_DCMTK)

ELSE(DCMTK_FOUND)

    IF (ITK_FOUND)

    INCLUDE(${ITK_USE_FILE})

    INCLUDE_DIRECTORIES( ITK_INCLUDE_DIRS )

    SET(TARGET_SRC ReaderWriterDICOM.cpp )

    LINK_DIRECTORIES(${ITK_LIBRARY_DIRS})

    # LINK_LIBRARIES(${ITK_LIBRARIES})

    LINK_LIBRARIES(ITKCommon ITKIO)

    ADD_DEFINITIONS(-DUSE_ITK)

    ENDIF(ITK_FOUND)

ENDIF(DCMTK_FOUND)

SET(TARGET_ADDED_LIBRARIES osgVolume )

#### end var setup  ###
SETUP_PLUGIN(dicom)
