Mercurial > hg > orthanc-databases
comparison Resources/Orthanc/CMake/DownloadOrthancFramework.cmake @ 159:efb85e380cff
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 21:10:32 +0200 |
parents | 23cf7def8e44 |
children | 84b6fc6f6b9b |
comparison
equal
deleted
inserted
replaced
158:ceaa2e4458d5 | 159:efb85e380cff |
---|---|
436 message(FATAL_ERROR "Please install the libjsoncpp-dev package") | 436 message(FATAL_ERROR "Please install the libjsoncpp-dev package") |
437 endif() | 437 endif() |
438 | 438 |
439 # Look for mandatory dependency Boost (cf. BoostConfiguration.cmake) | 439 # Look for mandatory dependency Boost (cf. BoostConfiguration.cmake) |
440 include(FindBoost) | 440 include(FindBoost) |
441 find_package(Boost COMPONENTS filesystem thread system date_time regex) | 441 find_package(Boost COMPONENTS filesystem thread system date_time regex ${ORTHANC_BOOST_COMPONENTS}) |
442 | 442 |
443 if (NOT Boost_FOUND) | 443 if (NOT Boost_FOUND) |
444 message(FATAL_ERROR "Unable to locate Boost on this system") | 444 message(FATAL_ERROR "Unable to locate Boost on this system") |
445 endif() | 445 endif() |
446 | 446 |
524 check_cxx_symbol_exists("Orthanc::InitializeFramework" "OrthancFramework.h" HAVE_ORTHANC_FRAMEWORK) | 524 check_cxx_symbol_exists("Orthanc::InitializeFramework" "OrthancFramework.h" HAVE_ORTHANC_FRAMEWORK) |
525 if (NOT HAVE_ORTHANC_FRAMEWORK) | 525 if (NOT HAVE_ORTHANC_FRAMEWORK) |
526 message(FATAL_ERROR "Cannot find the Orthanc framework") | 526 message(FATAL_ERROR "Cannot find the Orthanc framework") |
527 endif() | 527 endif() |
528 | 528 |
529 unset(CMAKE_REQUIRED_INCLUDES) | |
530 unset(CMAKE_REQUIRED_LIBRARIES) | |
531 | |
529 if (NOT "${ORTHANC_FRAMEWORK_ROOT}" STREQUAL "") | 532 if (NOT "${ORTHANC_FRAMEWORK_ROOT}" STREQUAL "") |
530 include_directories(${ORTHANC_FRAMEWORK_ROOT}) | 533 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
531 endif() | 534 endif() |
532 endif() | 535 endif() |