[Dcmlib] Problem with adding GDCM package in CMakeLists

Łukasz Tutaj ltutaj at wp.pl
Tue May 9 21:09:27 CEST 2006


Hello,

In my project I want to make the GDCM VTK and KWWidgets cooperate 
together. A part of my CMakeLists.txt is shown below:
#-----------------------------------------
PROJECT (KWMedicalViewer)

FIND_PACKAGE(GDCM)
IF(GDCM_FOUND)
    INCLUDE(${USE_GDCM_FILE})
ENDIF(GDCM_FOUND)

FIND_PACKAGE(VTK)
IF(VTK_FOUND)
        INCLUDE(${USE_VTK_FILE})
ENDIF(VTK_FOUND)

IF(NOT KWWidgets_SOURCE_DIR)
  FIND_PACKAGE(KWWidgets REQUIRED)
  INCLUDE(${KWWidgets_USE_FILE})
ENDIF(NOT KWWidgets_SOURCE_DIR)
#-----------------------------------------
With KWWidgets and VTK it works fine but with GDCM an error occurs. The 
information about this error is shown below:
#-----------------------------------------
CMake Error in cmake code at
(some path to bin directory)/GDCMConfig.cmake:16:
INCLUDE Could not find include file 
/usr/local/lib/GDCM-1.3.1/GDCMLibraryDepends.cmake
#-----------------------------------------
Could someone help me with that?
Thanks in advance.

Łukasz Tutaj





More information about the Dcmlib mailing list