comparison Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2988:9cc3d40e389b

Orthanc 1.4.3 is now known as 1.5.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 11:15:31 +0100
parents e62e296a5714
children ab46e537f92e
comparison
equal deleted inserted replaced
2987:96089d1aba4d 2988:9cc3d40e389b
560 else() 560 else()
561 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0) 561 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0)
562 endif() 562 endif()
563 563
564 564
565
566 #####################################################################
567 ## Configuration of Orthanc versioning macros (new in Orthanc 1.5.0)
568 #####################################################################
569
570 if (ORTHANC_VERSION STREQUAL "mainline")
571 set(ORTHANC_VERSION_MAJOR "999")
572 set(ORTHANC_VERSION_MINOR "999")
573 set(ORTHANC_VERSION_REVISION "999")
574 else()
575 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\1" ORTHANC_VERSION_MAJOR ${ORTHANC_VERSION})
576 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\2" ORTHANC_VERSION_MINOR ${ORTHANC_VERSION})
577 string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)$" "\\3" ORTHANC_VERSION_REVISION ${ORTHANC_VERSION})
578
579 if (NOT ORTHANC_VERSION STREQUAL
580 "${ORTHANC_VERSION_MAJOR}.${ORTHANC_VERSION_MINOR}.${ORTHANC_VERSION_REVISION}")
581 message(FATAL_ERROR "Error in the (x.y.z) format of the Orthanc version: ${ORTHANC_VERSION}")
582 endif()
583 endif()
584
585 add_definitions(
586 -DORTHANC_VERSION_MAJOR=${ORTHANC_VERSION_MAJOR}
587 -DORTHANC_VERSION_MINOR=${ORTHANC_VERSION_MINOR}
588 -DORTHANC_VERSION_REVISION=${ORTHANC_VERSION_REVISION}
589 )
590
591
592
565 ##################################################################### 593 #####################################################################
566 ## Gathering of all the source code 594 ## Gathering of all the source code
567 ##################################################################### 595 #####################################################################
568 596
569 # The "xxx_INTERNAL" variables list the source code that belongs to 597 # The "xxx_INTERNAL" variables list the source code that belongs to