comparison Resources/CMake/3DHOP.cmake @ 62:b798387b085c

added 3DHOP viewer version 4.3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Jun 2024 16:08:52 +0200
parents
children
comparison
equal deleted inserted replaced
61:5dc3f3dcc092 62:b798387b085c
1 # SPDX-FileCopyrightText: 2023-2024 Sebastien Jodogne, UCLouvain, Belgium
2 # SPDX-License-Identifier: GPL-3.0-or-later
3
4
5 # STL plugin for Orthanc
6 # Copyright (C) 2023-2024 Sebastien Jodogne, UCLouvain, Belgium
7 #
8 # This program is free software: you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation, either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
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/>.
20
21
22 DownloadPackage(
23 "9e0dee1e12668d5667aa9be0ae5937e0"
24 "https://orthanc.uclouvain.be/downloads/third-party-downloads/STL/3DHOP_4.3.zip"
25 "${CMAKE_BINARY_DIR}/3DHOP_4.3")
26
27 set(3DHOP_DIR ${CMAKE_CURRENT_BINARY_DIR}/3dhop)
28 file(MAKE_DIRECTORY ${3DHOP_DIR})
29
30 file(COPY
31 ${CMAKE_BINARY_DIR}/3DHOP_4.3/minimal/3DHOP_all_tools.html
32 ${CMAKE_BINARY_DIR}/3DHOP_4.3/minimal/js
33 ${CMAKE_BINARY_DIR}/3DHOP_4.3/minimal/skins
34 ${CMAKE_BINARY_DIR}/3DHOP_4.3/minimal/stylesheet
35 DESTINATION
36 ${3DHOP_DIR}
37 )
38
39 execute_process(
40 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i
41 ${CMAKE_CURRENT_LIST_DIR}/3dhop-4.3.patch
42 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
43 RESULT_VARIABLE Failure
44 )
45
46 list(APPEND STATIC_ASSETS_PREFIXES "3dhop")
47 list(APPEND STATIC_ASSETS_CONTENT ${3DHOP_DIR})