comparison CMakeLists.txt @ 51:7b4b8b82112e

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Jul 2015 15:56:27 +0200
parents c06f1c00ce56
children 26a230647a73
comparison
equal deleted inserted replaced
50:2578545f8d87 51:7b4b8b82112e
62 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) 62 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake)
63 63
64 64
65 # Check that the Orthanc SDK headers are available or download them 65 # Check that the Orthanc SDK headers are available or download them
66 if (STATIC_BUILD) 66 if (STATIC_BUILD)
67 #set(ORTHANC_SDK_URL "https://bitbucket.org/sjodogne/orthanc/raw/default") 67 include_directories(${ORTHANC_ROOT}/Sdk-0.9.1)
68 set(ORTHANC_SDK_URL "https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-0.9.1")
69
70 file(MAKE_DIRECTORY ${AUTOGENERATED_DIR}/orthanc)
71 file(DOWNLOAD
72 "${ORTHANC_SDK_URL}/Plugins/Include/orthanc/OrthancCPlugin.h"
73 "${AUTOGENERATED_DIR}/orthanc/OrthancCPlugin.h"
74 STATUS StatusTmp)
75
76 list(GET StatusTmp 0 Status)
77 if(NOT Status EQUAL 0)
78 message(FATAL_ERROR "Cannot download the plugin SDK")
79 endif()
80 else () 68 else ()
81 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) 69 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H)
82 if (NOT HAVE_ORTHANC_H) 70 if (NOT HAVE_ORTHANC_H)
83 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") 71 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK")
84 endif() 72 endif()