[vtkusers] [Gdcm2] How to use vtk and gdcm in Visual Studio 2008

John Drescher drescherjm at gmail.com
Tue Jun 21 09:33:08 EDT 2011


On Tue, Jun 21, 2011 at 9:11 AM, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> Thanks! Here is my CMakeLists.txt:
>
> cmake_minimum_required(VERSION 2.8)
> PROJECT(TestGDCM)
> FIND_PACKAGE(VTK REQUIRED)
> INCLUDE(${VTK_USE_FILE})
> FIND_PACKAGE(GDCM)
> IF(GDCM_FOUND)
>   INCLUDE(${GDCM_USE_FILE})
> ENDIF(GDCM_FOUND)
> INCLUDE_DIRECTORIES (
>  ${VTK_INCLUDE_DIR}
>  ${CMAKE_CURRENT_BINARY_DIR}
>  ${CMAKE_CURRENT_SOURCE_DIR}
>  )
> ADD_EXECUTABLE(TestGDCM TestGDCM.cxx)
> TARGET_LINK_LIBRARIES(TestGDCM
>  gdcmMSFF
>  vtkgdcm
>  vtkCommon
>  vtkRendering
>  vtkIO
>  vtkFiltering
>  vtkGraphics
>  vtkWidgets
>  vtkImaging
>  vtkHybrid
>  vtkCharts
>  vtkVolumeRendering
>  )
>

I am now thinking this is the same GDCM bug I found a few versions
ago. Can you try gdcm-2.0.14 instead of 2.0.17.

John



More information about the vtkusers mailing list