diff Resources/CMake/JavaScriptLibraries.cmake @ 0:02f7a0400a91

initial commit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Feb 2015 13:45:35 +0100
parents
children 54d5dd1df2e5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Resources/CMake/JavaScriptLibraries.cmake	Wed Feb 25 13:45:35 2015 +0100
@@ -0,0 +1,68 @@
+# Orthanc - A Lightweight, RESTful DICOM Store
+# Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics
+# Department, University Hospital of Liege, Belgium
+#
+# This program is free software: you can redistribute it and/or
+# modify it under the terms of the GNU Affero General Public License
+# as published by the Free Software Foundation, either version 3 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+set(BASE_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/WebViewer")
+
+DownloadPackage(
+  "eef2d2e8c057d33c20ab55fdd06a73c7"
+  "${BASE_URL}/cornerstone-0.7.1.zip"
+  "cornerstone-0.7.1")
+
+DownloadPackage(
+  "cb943ac26be9ee755e8741ea232389e2"
+  "${BASE_URL}/jquery-ui-1.11.3.zip"
+  "jquery-ui-1.11.3")
+
+DownloadPackage(
+  "8f27231a78218b959159e37daa3d86b3"
+  "${BASE_URL}/jsPanel-2.3.3.zip"
+  "jspanel")
+
+DownloadPackage(
+  "8392ad105d913c3a83a7787c8f148055"
+  "${BASE_URL}/pako-0.2.5.zip"
+  "pako-0.2.5")
+
+DownloadPackage(
+  "7ebea0b624cd62445a124d264dfa2a53"
+  "${BASE_URL}/js-url-1.8.6.zip"
+  "js-url-1.8.6")
+
+
+set(JAVASCRIPT_LIBS_DIR  ${CMAKE_CURRENT_BINARY_DIR}/javascript-libs)
+file(MAKE_DIRECTORY ${JAVASCRIPT_LIBS_DIR})
+
+file(COPY
+  ${CMAKE_CURRENT_BINARY_DIR}/cornerstone-0.7.1/dist/cornerstone.min.css
+  ${CMAKE_CURRENT_BINARY_DIR}/cornerstone-0.7.1/dist/cornerstone.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/external/jquery/jquery.js
+  ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/images
+  ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.min.css
+  ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.theme.min.css
+  ${CMAKE_CURRENT_BINARY_DIR}/js-url-1.8.6/url.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/jspanel/fonts
+  ${CMAKE_CURRENT_BINARY_DIR}/jspanel/images
+  ${CMAKE_CURRENT_BINARY_DIR}/jspanel/jquery.jspanel.min.css
+  ${CMAKE_CURRENT_BINARY_DIR}/jspanel/jquery.jspanel.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/vendor/jquery.ui.touch-punch.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/vendor/mobile-detect.min.js
+  ${CMAKE_CURRENT_BINARY_DIR}/pako-0.2.5/dist/pako_inflate.min.js
+  DESTINATION
+  ${JAVASCRIPT_LIBS_DIR}
+  )