comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:02f7a0400a91
1 # Orthanc - A Lightweight, RESTful DICOM Store
2 # Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics
3 # Department, University Hospital of Liege, Belgium
4 #
5 # This program is free software: you can redistribute it and/or
6 # modify it under the terms of the GNU Affero General Public License
7 # as published by the Free Software Foundation, either version 3 of
8 # the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19 set(BASE_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/WebViewer")
20
21 DownloadPackage(
22 "eef2d2e8c057d33c20ab55fdd06a73c7"
23 "${BASE_URL}/cornerstone-0.7.1.zip"
24 "cornerstone-0.7.1")
25
26 DownloadPackage(
27 "cb943ac26be9ee755e8741ea232389e2"
28 "${BASE_URL}/jquery-ui-1.11.3.zip"
29 "jquery-ui-1.11.3")
30
31 DownloadPackage(
32 "8f27231a78218b959159e37daa3d86b3"
33 "${BASE_URL}/jsPanel-2.3.3.zip"
34 "jspanel")
35
36 DownloadPackage(
37 "8392ad105d913c3a83a7787c8f148055"
38 "${BASE_URL}/pako-0.2.5.zip"
39 "pako-0.2.5")
40
41 DownloadPackage(
42 "7ebea0b624cd62445a124d264dfa2a53"
43 "${BASE_URL}/js-url-1.8.6.zip"
44 "js-url-1.8.6")
45
46
47 set(JAVASCRIPT_LIBS_DIR ${CMAKE_CURRENT_BINARY_DIR}/javascript-libs)
48 file(MAKE_DIRECTORY ${JAVASCRIPT_LIBS_DIR})
49
50 file(COPY
51 ${CMAKE_CURRENT_BINARY_DIR}/cornerstone-0.7.1/dist/cornerstone.min.css
52 ${CMAKE_CURRENT_BINARY_DIR}/cornerstone-0.7.1/dist/cornerstone.min.js
53 ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/external/jquery/jquery.js
54 ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/images
55 ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.min.css
56 ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.min.js
57 ${CMAKE_CURRENT_BINARY_DIR}/jquery-ui-1.11.3/jquery-ui.theme.min.css
58 ${CMAKE_CURRENT_BINARY_DIR}/js-url-1.8.6/url.min.js
59 ${CMAKE_CURRENT_BINARY_DIR}/jspanel/fonts
60 ${CMAKE_CURRENT_BINARY_DIR}/jspanel/images
61 ${CMAKE_CURRENT_BINARY_DIR}/jspanel/jquery.jspanel.min.css
62 ${CMAKE_CURRENT_BINARY_DIR}/jspanel/jquery.jspanel.min.js
63 ${CMAKE_CURRENT_BINARY_DIR}/vendor/jquery.ui.touch-punch.min.js
64 ${CMAKE_CURRENT_BINARY_DIR}/vendor/mobile-detect.min.js
65 ${CMAKE_CURRENT_BINARY_DIR}/pako-0.2.5/dist/pako_inflate.min.js
66 DESTINATION
67 ${JAVASCRIPT_LIBS_DIR}
68 )