diff Resources/CMake/DcmtkConfiguration.cmake @ 298:6c4f6229aad7

fix in embedding dictionaries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2012 10:06:45 +0100
parents 4d7469f72a0b
children 301f2831489c
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Fri Dec 14 15:37:12 2012 +0100
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Mon Dec 17 10:06:45 2012 +0100
@@ -70,13 +70,12 @@
 
   set(DCMTK_BUNDLES_LOG4CPLUS 1)
 
-  if (${STANDALONE_BUILD})
-    set(DCMTK_DICTIONARIES
-      DICTIONARY_DICOM ${DCMTK_SOURCES_DIR}/dcmdata/data/dicom.dic
-      DICTIONARY_PRIVATE ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic
-      DICTIONARY_DICONDE ${DCMTK_SOURCES_DIR}/dcmdata/data/diconde.dic
-      )
-  endif()
+  add_definitions(-DDCMTK_USE_EMBEDDED_DICTIONARIES=1)
+  set(DCMTK_DICTIONARIES
+    DICTIONARY_DICOM ${DCMTK_SOURCES_DIR}/dcmdata/data/dicom.dic
+    DICTIONARY_PRIVATE ${DCMTK_SOURCES_DIR}/dcmdata/data/private.dic
+    DICTIONARY_DICONDE ${DCMTK_SOURCES_DIR}/dcmdata/data/diconde.dic
+    )
 
 else()
   # The following line allows to manually add libraries at the
@@ -112,6 +111,8 @@
     DCMTK_VERSION_NUMBER 
     ${DCMTK_VERSION_NUMBER1})
 
+  add_definitions(-DDCMTK_USE_EMBEDDED_DICTIONARIES=0)
+
 endif()
 
 add_definitions(-DDCMTK_VERSION_NUMBER=${DCMTK_VERSION_NUMBER})