Mercurial > hg > orthanc-stone
annotate Applications/StoneWebViewer/Plugin/CMakeLists.txt @ 2010:25d269c7b753
grouping annotations into one submenu for narrow screens
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Dec 2022 18:06:33 +0100 |
parents | a2955abe4c2e |
children | 07964689cb0b |
rev | line source |
---|---|
1589
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
1 # Stone of Orthanc |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
1871
7053b8a0aaec
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1870
diff
changeset
|
4 # Copyright (C) 2017-2022 Osimis S.A., Belgium |
7053b8a0aaec
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1870
diff
changeset
|
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
1589
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
6 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
7 # This program is free software: you can redistribute it and/or |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
8 # modify it under the terms of the GNU Affero General Public License |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
9 # as published by the Free Software Foundation, either version 3 of |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
10 # the License, or (at your option) any later version. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
11 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
12 # This program is distributed in the hope that it will be useful, but |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
15 # Affero General Public License for more details. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
16 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
17 # You should have received a copy of the GNU Affero General Public License |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
19 |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
20 |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 cmake_minimum_required(VERSION 2.8.3) |
1730
af4a2d08549c
preparing for release
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1664
diff
changeset
|
22 cmake_policy(SET CMP0058 NEW) |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 project(StoneWebViewerPlugin) |
1731
816e1634f221
StoneWebViewer-1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1730
diff
changeset
|
25 include(${CMAKE_SOURCE_DIR}/../Version.cmake) |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
26 |
1548
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1545
diff
changeset
|
27 set(ORTHANC_STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
28 |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
29 # Parameters of the build |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
30 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
31 set(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
32 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc framework (can be \"system\", \"hg\", \"archive\", \"web\" or \"path\")") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
33 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
34 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
35 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
36 |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
38 # Advanced parameters to fine-tune linking against system libraries |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
39 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
40 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
41 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
42 |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
43 |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
44 # Download and setup the Orthanc framework |
1545 | 45 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
46 |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
47 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
1835
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
48 if (ORTHANC_FRAMEWORK_USE_SHARED) |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
49 include(FindBoost) |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
50 find_package(Boost COMPONENTS system) |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
51 |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
52 if (NOT Boost_FOUND) |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
53 message(FATAL_ERROR "Unable to locate Boost on this system") |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
54 endif() |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
55 |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
56 link_libraries(${Boost_LIBRARIES} jsoncpp) |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
57 endif() |
6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1739
diff
changeset
|
58 |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
59 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
61 else() |
1530 | 62 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) |
1840
c01ed7a7c11f
improved CMakeLists.txt
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1835
diff
changeset
|
63 |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
64 set(ENABLE_MODULE_IMAGES OFF) |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
65 set(ENABLE_MODULE_JOBS OFF) |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
66 set(ENABLE_MODULE_DICOM OFF) |
1840
c01ed7a7c11f
improved CMakeLists.txt
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1835
diff
changeset
|
67 |
1530 | 68 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) |
1840
c01ed7a7c11f
improved CMakeLists.txt
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1835
diff
changeset
|
69 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
1508
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
70 endif() |
dd1d1cc0575d
use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1505
diff
changeset
|
71 |
1877
a2955abe4c2e
skeleton for the RenderingPlugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1871
diff
changeset
|
72 include(${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
74 |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
75 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) |
1877
a2955abe4c2e
skeleton for the RenderingPlugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1871
diff
changeset
|
76 include_directories(${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Sdk-1.0.0) |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
77 else () |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
78 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
79 if (NOT HAVE_ORTHANC_H) |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
80 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
81 endif() |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
82 endif() |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
83 |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
84 |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
85 add_definitions( |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
86 -DHAS_ORTHANC_EXCEPTION=1 |
1731
816e1634f221
StoneWebViewer-1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1730
diff
changeset
|
87 -DPLUGIN_VERSION="${STONE_WEB_VIEWER_VERSION}" |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
88 -DPLUGIN_NAME="stone-webviewer" |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
89 ) |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
90 |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
91 |
1733
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
92 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
93 SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32") |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
94 |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
95 execute_process( |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
96 COMMAND |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
97 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
98 ${STONE_WEB_VIEWER_VERSION} "StoneWebViewer" StoneWebViewer.dll "Stone Web viewer for medical imaging" |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
99 ERROR_VARIABLE Failure |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
100 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
101 ) |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
102 |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
103 if (Failure) |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
104 message(FATAL_ERROR "Error while computing the version information: ${Failure}") |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
105 endif() |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
106 |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
107 list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc) |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
108 endif() |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
109 |
2f72db02be44
added missing version information in Windows binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1731
diff
changeset
|
110 |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 EmbedResources( |
1664 | 112 --no-upcase-check # For 2017-11-13-OpenSans-Regular.ttf |
113 | |
1526
61023b0d39c8
Reverted the Stone Web Viewer plugin to rev. 307a805d0587
Benjamin Golinvaux <bgo@osimis.io>
parents:
1519
diff
changeset
|
114 # Folders |
1548
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1545
diff
changeset
|
115 IMAGES ${ORTHANC_STONE_BINARIES}/img/ |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
116 WEB_APPLICATION ${CMAKE_SOURCE_DIR}/../WebApplication |
1555
b894072b9e2f
static JavaScript resources
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1548
diff
changeset
|
117 LIBRARIES_CSS ${ORTHANC_STONE_BINARIES}/css/ |
b894072b9e2f
static JavaScript resources
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1548
diff
changeset
|
118 LIBRARIES_JS ${ORTHANC_STONE_BINARIES}/js/ |
b894072b9e2f
static JavaScript resources
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1548
diff
changeset
|
119 LIBRARIES_WEBFONTS ${ORTHANC_STONE_BINARIES}/webfonts/ |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
120 |
1526
61023b0d39c8
Reverted the Stone Web Viewer plugin to rev. 307a805d0587
Benjamin Golinvaux <bgo@osimis.io>
parents:
1519
diff
changeset
|
121 # Individual files |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
122 ORTHANC_EXPLORER ${CMAKE_SOURCE_DIR}/OrthancExplorer.js |
1548
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1545
diff
changeset
|
123 STONE_WEB_VIEWER_JS ${ORTHANC_STONE_BINARIES}/StoneWebViewer.js |
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1545
diff
changeset
|
124 STONE_WEB_VIEWER_WASM ${ORTHANC_STONE_BINARIES}/StoneWebViewer.wasm |
65eccce95882
unifying the default install prefix for WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1545
diff
changeset
|
125 STONE_WRAPPER ${ORTHANC_STONE_BINARIES}/stone.js |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
126 ) |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
128 add_library(StoneWebViewer SHARED |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
129 Plugin.cpp |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 ${AUTOGENERATED_SOURCES} |
1877
a2955abe4c2e
skeleton for the RenderingPlugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1871
diff
changeset
|
131 ${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp |
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 ${ORTHANC_CORE_SOURCES} |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 ) |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
134 |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
135 set_target_properties(StoneWebViewer PROPERTIES |
1731
816e1634f221
StoneWebViewer-1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1730
diff
changeset
|
136 VERSION ${STONE_WEB_VIEWER_VERSION} |
816e1634f221
StoneWebViewer-1.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1730
diff
changeset
|
137 SOVERSION ${STONE_WEB_VIEWER_VERSION}) |
1496
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
138 |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
139 install( |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
140 TARGETS StoneWebViewer |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
141 RUNTIME DESTINATION lib # Destination for Windows |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
142 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
d450653b46d3
build stone web viewer using docker
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1495
diff
changeset
|
143 ) |