changeset 256:86ccff58f344

fix build if dcmtk is enabled
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Jul 2018 16:49:59 +0200
parents 4f0f8026700c
children 106a0f9781d9
files Resources/CMake/OrthancStoneConfiguration.cmake Resources/CMake/OrthancStoneParameters.cmake
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/OrthancStoneConfiguration.cmake	Fri Jun 08 16:18:45 2018 +0200
+++ b/Resources/CMake/OrthancStoneConfiguration.cmake	Wed Jul 04 16:49:59 2018 +0200
@@ -100,6 +100,12 @@
 #####################################################################
 
 EmbedResources(
+  # Resources coming from the core of Orthanc. They must be copied
+  # here, as HAS_EMBEDDED_RESOURCES is set to ON in
+  # "OrthancStoneParameters.cmake"
+  ${DCMTK_DICTIONARIES}
+
+  # Resources specific to the Stone of Orthanc
   COLORMAP_HOT    ${ORTHANC_STONE_ROOT}/Resources/Colormaps/hot.lut
   COLORMAP_JET    ${ORTHANC_STONE_ROOT}/Resources/Colormaps/jet.lut
   COLORMAP_RED    ${ORTHANC_STONE_ROOT}/Resources/Colormaps/red.lut
@@ -212,6 +218,7 @@
   ${PLATFORM_SOURCES}
   ${APPLICATIONS_SOURCES}
   ${ORTHANC_CORE_SOURCES}
+  ${ORTHANC_DICOM_SOURCES}
   ${AUTOGENERATED_SOURCES}
 
   # Mandatory components
--- a/Resources/CMake/OrthancStoneParameters.cmake	Fri Jun 08 16:18:45 2018 +0200
+++ b/Resources/CMake/OrthancStoneParameters.cmake	Wed Jul 04 16:49:59 2018 +0200
@@ -28,9 +28,10 @@
 set(ENABLE_LOCALE OFF)         # Disable support for locales (notably in Boost)
 set(ENABLE_GOOGLE_TEST ON)
 set(ENABLE_SQLITE OFF)
-SET(ENABLE_JPEG ON)
-SET(ENABLE_PNG ON)
-SET(ENABLE_ZLIB ON)
+set(ENABLE_JPEG ON)
+set(ENABLE_PNG ON)
+set(ENABLE_ZLIB ON)
+set(HAS_EMBEDDED_RESOURCES ON)
 
 
 #####################################################################