From: malaterre Date: Fri, 12 May 2006 15:34:02 +0000 (+0000) Subject: ENH: Adding an option (hidden) to not install the gdcm dicts X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ce850beb1494ce737d72374cc43d9fa4f0044e8e;p=gdcm.git ENH: Adding an option (hidden) to not install the gdcm dicts --- diff --git a/Dicts/CMakeLists.txt b/Dicts/CMakeLists.txt index 1ea0994f..f6ba194f 100644 --- a/Dicts/CMakeLists.txt +++ b/Dicts/CMakeLists.txt @@ -106,16 +106,19 @@ ENDFOREACH(line) # ... Set the dictionnary SET(DICOM_DIR_DICTIONARY "${DICOM_DIR_DICTIONARY} \n {0,0,0,0,0}") -CONFIGURE_FILE("${GDCM_SOURCE_DIR}/src/gdcmDefaultDicts.cxx.in" +CONFIGURE_FILE("${GDCM_SOURCE_DIR}/src/gdcmDefaultDicts.cxx.in" "${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx" IMMEDIATE) #----------------------------------------------------------------------------- -INSTALL_FILES(${GDCM_INSTALL_DATA_DIR} .dic - dicomV3 - dicomVR - dicomTS - DicomDir - DictGroupName - gdcm -) +# For now GDCM_INSTALL_NO_DICTIONARY is a hidden variables +IF(NOT GDCM_INSTALL_NO_DICTIONARY) + INSTALL_FILES(${GDCM_INSTALL_DATA_DIR} .dic + dicomV3 + dicomVR + dicomTS + DicomDir + DictGroupName + gdcm + ) +ENDIF(NOT GDCM_INSTALL_NO_DICTIONARY)