comparison OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake @ 4369:39bc2fb4657b

look for openssl in DownloadOrthancFramework.cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 12 Dec 2020 19:41:56 +0100
parents df15262373b0
children bda867e036f3
comparison
equal deleted inserted replaced
4367:189e48f4a92a 4369:39bc2fb4657b
527 if (ENABLE_DCMTK) 527 if (ENABLE_DCMTK)
528 include(FindDCMTK) 528 include(FindDCMTK)
529 include_directories(${DCMTK_INCLUDE_DIRS}) 529 include_directories(${DCMTK_INCLUDE_DIRS})
530 link_libraries(${DCMTK_LIBRARIES}) 530 link_libraries(${DCMTK_LIBRARIES})
531 endif() 531 endif()
532
533 # Optional component - OpenSSL
534 if (ENABLE_SSL)
535 include(FindOpenSSL)
536 if (NOT ${OPENSSL_FOUND})
537 message(FATAL_ERROR "Unable to find OpenSSL")
538 endif()
539 include_directories(${OPENSSL_INCLUDE_DIR})
540 link_libraries(${OPENSSL_LIBRARIES})
541 endif()
532 endif() 542 endif()
533 543
534 # Look for Orthanc framework shared library 544 # Look for Orthanc framework shared library
535 include(CheckCXXSymbolExists) 545 include(CheckCXXSymbolExists)
536 546