[Insight-users] FIND_PACKAGE(GDCM) not work

bear xgl99 at mails.tsinghua.edu.cn
Thu Nov 25 09:41:16 EST 2004


hi,
       I write a simple CMakeLists.txt to compile a program which uses itk's
GDCM:
PROJECT(readljpeg)
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${USE_ITK_FILE})
ENDIF(ITK_FOUND)
FIND_PACKAGE(GDCM)
INCLUDE(${ITK_USE_FILE})
INCLUDE_DIRECTORIES(${GDCM_INCLUDE_DIR})
ADD_EXECUTABLE(readljpeg readljpeg.cxx)
TARGET_LINK_LIBRARIES(readljpeg ITKCommon libITKIO)
but cmake cannot generate Makefile with error:

CMake Error: GDCM_DIR is not set.  It must be set to the directory containing
GDCMConfig.cmake in order to use GDCM.

but I search the cvs itk tree. There is no GDCMConfig.cmake. Where is it?





More information about the Insight-users mailing list