comparison Resources/CMake/OrthancFrameworkConfiguration.cmake @ 3985:cb801e5b4411

clarifying embedded resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 29 May 2020 10:14:26 +0200
parents 464d40d572bd
children f9863630ec7f
comparison
equal deleted inserted replaced
3984:4769db115a02 3985:cb801e5b4411
511 ${ORTHANC_ROOT}/Core/DicomParsing/MemoryBufferTranscoder.cpp 511 ${ORTHANC_ROOT}/Core/DicomParsing/MemoryBufferTranscoder.cpp
512 ) 512 )
513 else() 513 else()
514 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=0) 514 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=0)
515 endif() 515 endif()
516
517 if (STANDALONE_BUILD AND NOT HAS_EMBEDDED_RESOURCES)
518 EmbedResources(
519 ${DCMTK_DICTIONARIES}
520 )
521 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
522 ${AUTOGENERATED_SOURCES}
523 )
524 endif()
525 endif() 516 endif()
526 517
527 518
528 ##################################################################### 519 #####################################################################
529 ## Configuration of the C/C++ macros 520 ## Configuration of the C/C++ macros
592 if (ENABLE_WEB_SERVER) 583 if (ENABLE_WEB_SERVER)
593 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL 584 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
594 ${ORTHANC_ROOT}/Core/HttpServer/EmbeddedResourceHttpHandler.cpp 585 ${ORTHANC_ROOT}/Core/HttpServer/EmbeddedResourceHttpHandler.cpp
595 ) 586 )
596 endif() 587 endif()
588
589 elseif (STANDALONE_BUILD)
590 # No embedded resources are provided by the external project, but
591 # some are required by the Orthanc framework (DCMTK and ICU)
592 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1)
593
594 EmbedResources(
595 ${DCMTK_DICTIONARIES}
596 ${LIBICU_RESOURCES}
597 )
598
599 list(APPEND ORTHANC_DICOM_SOURCES_DEPENDENCIES
600 ${AUTOGENERATED_SOURCES}
601 )
602
597 else() 603 else()
604 # Neither the external project, nor the Orthanc framework have to
605 # embed external resources
598 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0) 606 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0)
599 endif() 607 endif()
600 608
601 609
602 610