Mercurial > hg > orthanc-webviewer
comparison CMakeLists.txt @ 49:c06f1c00ce56
improved sdk download
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Jul 2015 14:50:49 +0200 |
parents | 1c776248a8eb |
children | 7b4b8b82112e |
comparison
equal
deleted
inserted
replaced
48:1c776248a8eb | 49:c06f1c00ce56 |
---|---|
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 "http://orthanc.googlecode.com/hg") | 67 #set(ORTHANC_SDK_URL "https://bitbucket.org/sjodogne/orthanc/raw/default") |
68 set(ORTHANC_SDK_URL "http://orthanc.googlecode.com/hg-history/Orthanc-0.9.1") | 68 set(ORTHANC_SDK_URL "https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-0.9.1") |
69 | |
69 file(MAKE_DIRECTORY ${AUTOGENERATED_DIR}/orthanc) | 70 file(MAKE_DIRECTORY ${AUTOGENERATED_DIR}/orthanc) |
70 file(DOWNLOAD "${ORTHANC_SDK_URL}/Plugins/Include/orthanc/OrthancCPlugin.h" | 71 file(DOWNLOAD |
71 "${AUTOGENERATED_DIR}/orthanc/OrthancCPlugin.h" SHOW_PROGRESS) | 72 "${ORTHANC_SDK_URL}/Plugins/Include/orthanc/OrthancCPlugin.h" |
72 if (${MSVC}) | 73 "${AUTOGENERATED_DIR}/orthanc/OrthancCPlugin.h" |
73 add_definitions(-D_CRT_SECURE_NO_WARNINGS=1) | 74 STATUS StatusTmp) |
74 file(DOWNLOAD "${ORTHANC_SDK_URL}/Resources/ThirdParty/VisualStudio/stdint.h" | 75 |
75 "${AUTOGENERATED_DIR}/stdint.h" SHOW_PROGRESS) | 76 list(GET StatusTmp 0 Status) |
77 if(NOT Status EQUAL 0) | |
78 message(FATAL_ERROR "Cannot download the plugin SDK") | |
76 endif() | 79 endif() |
77 else () | 80 else () |
78 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) | 81 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) |
79 if (NOT HAVE_ORTHANC_H) | 82 if (NOT HAVE_ORTHANC_H) |
80 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") | 83 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") |