diff Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2391:233d6eeef799

fix pch
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2017 12:29:48 +0200
parents cf0eb76c5e81
children a88c3ea0c96d
line wrap: on
line diff
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake	Wed Aug 30 12:05:49 2017 +0200
+++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake	Wed Aug 30 12:29:48 2017 +0200
@@ -325,7 +325,7 @@
     add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0)
   endif()
 
-  set(ORTHANC_DICOM_SOURCES
+  set(ORTHANC_DICOM_SOURCES_INTERNAL
     ${ORTHANC_ROOT}/Core/DicomParsing/DicomDirWriter.cpp
     ${ORTHANC_ROOT}/Core/DicomParsing/DicomModification.cpp
     ${ORTHANC_ROOT}/Core/DicomParsing/FromDcmtkBridge.cpp
@@ -334,13 +334,11 @@
 
     ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomFrameIndex.cpp
     ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomImageDecoder.cpp
-
-    ${DCMTK_SOURCES}
     )
 
   if (ENABLE_DCMTK_NETWORKING)
     add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1)
-    list(APPEND ORTHANC_DICOM_SOURCES
+    list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL
       ${ORTHANC_ROOT}/Core/DicomNetworking/DicomFindAnswers.cpp
       ${ORTHANC_ROOT}/Core/DicomNetworking/DicomServer.cpp
       ${ORTHANC_ROOT}/Core/DicomNetworking/DicomUserConnection.cpp
@@ -430,3 +428,14 @@
   ${ORTHANC_CORE_SOURCES_INTERNAL}
   ${ORTHANC_CORE_SOURCES_DEPENDENCIES}
   )
+
+if (ENABLE_DCMTK)
+  set(ORTHANC_DICOM_SOURCES_DEPENDENCIES
+    ${DCMTK_SOURCES}
+    )
+  
+  set(ORTHANC_DICOM_SOURCES
+    ${ORTHANC_DICOM_SOURCES_INTERNAL}
+    ${ORTHANC_DICOM_SOURCES_DEPENDENCIES}
+    )
+endif()