comparison Resources/CMake/NexusViewer.cmake @ 65:6a891818bad5

upgraded Nexus viewer to version 4.3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Jun 2024 16:51:42 +0200
parents 5e11f5880e6d
children
comparison
equal deleted inserted replaced
64:5e11f5880e6d 65:6a891818bad5
18 # You should have received a copy of the GNU General Public License 18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 21
22 DownloadPackage( 22 DownloadPackage(
23 "6069b141edb7ce1d543b53ddaa4b41d1" 23 "bf61d139b592eb5b724f0f8a3f53bb04"
24 "https://orthanc.uclouvain.be/downloads/third-party-downloads/STL/nexus-4.2.zip" 24 "https://orthanc.uclouvain.be/downloads/third-party-downloads/STL/nexus-4.3.zip"
25 "${CMAKE_BINARY_DIR}/nexus-4.2") 25 "${CMAKE_BINARY_DIR}/nexus-4.3")
26 26
27 set(NEXUS_VIEWER_DIR ${CMAKE_CURRENT_BINARY_DIR}/nexus) 27 set(NEXUS_VIEWER_DIR ${CMAKE_CURRENT_BINARY_DIR}/nexus)
28 file(MAKE_DIRECTORY ${NEXUS_VIEWER_DIR}) 28 file(MAKE_DIRECTORY ${NEXUS_VIEWER_DIR})
29 29
30 DownloadCompressedFile(
31 "df21a4a192c0952a1189125609cc76f9"
32 "https://orthanc.uclouvain.be/downloads/third-party-downloads/STL/three-84.js.gz"
33 "${NEXUS_VIEWER_DIR}/three-84.js")
34
35 file(COPY 30 file(COPY
36 ${CMAKE_BINARY_DIR}/nexus-4.2/html/js 31 ${CMAKE_BINARY_DIR}/nexus-4.3/html/js
37 ${CMAKE_BINARY_DIR}/nexus-4.2/html/threejs.html 32 ${CMAKE_BINARY_DIR}/nexus-4.3/html/threejs.html
38 DESTINATION 33 DESTINATION
39 ${NEXUS_VIEWER_DIR} 34 ${NEXUS_VIEWER_DIR}
40 ) 35 )
41 36
42 execute_process( 37 execute_process(
43 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i 38 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i
44 ${CMAKE_CURRENT_LIST_DIR}/nexus-viewer-4.2.patch 39 ${CMAKE_CURRENT_LIST_DIR}/nexus-viewer-4.3.patch
45 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} 40 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
46 RESULT_VARIABLE Failure 41 RESULT_VARIABLE Failure
47 ) 42 )
48 43
49 list(APPEND STATIC_ASSETS_PREFIXES "nexus") 44 list(APPEND STATIC_ASSETS_PREFIXES "nexus")