comparison Applications/StoneWebViewer/Plugin/CMakeLists.txt @ 1731:816e1634f221 StoneWebViewer-1.0

StoneWebViewer-1.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Dec 2020 13:19:15 +0100
parents af4a2d08549c
children 2f72db02be44
comparison
equal deleted inserted replaced
1730:af4a2d08549c 1731:816e1634f221
19 19
20 cmake_minimum_required(VERSION 2.8.3) 20 cmake_minimum_required(VERSION 2.8.3)
21 cmake_policy(SET CMP0058 NEW) 21 cmake_policy(SET CMP0058 NEW)
22 22
23 project(StoneWebViewerPlugin) 23 project(StoneWebViewerPlugin)
24 24 include(${CMAKE_SOURCE_DIR}/../Version.cmake)
25 set(ORTHANC_PLUGIN_VERSION "mainline")
26
27 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline")
28 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
29 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
30 else()
31 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.7.2")
32 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
33 endif()
34
35
36 25
37 set(ORTHANC_STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder") 26 set(ORTHANC_STONE_BINARIES "${CMAKE_SOURCE_DIR}/../../../wasm-binaries/StoneWebViewer/" CACHE PATH "Path to the binaries of the \"../WebAssembly\" folder")
38 27
39 # Parameters of the build 28 # Parameters of the build
40 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") 29 set(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)")
80 endif() 69 endif()
81 70
82 71
83 add_definitions( 72 add_definitions(
84 -DHAS_ORTHANC_EXCEPTION=1 73 -DHAS_ORTHANC_EXCEPTION=1
85 -DPLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" 74 -DPLUGIN_VERSION="${STONE_WEB_VIEWER_VERSION}"
86 -DPLUGIN_NAME="stone-webviewer" 75 -DPLUGIN_NAME="stone-webviewer"
87 ) 76 )
88 77
89 78
90 EmbedResources( 79 EmbedResources(
110 ${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp 99 ${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp
111 ${ORTHANC_CORE_SOURCES} 100 ${ORTHANC_CORE_SOURCES}
112 ) 101 )
113 102
114 set_target_properties(StoneWebViewer PROPERTIES 103 set_target_properties(StoneWebViewer PROPERTIES
115 VERSION ${ORTHANC_PLUGIN_VERSION} 104 VERSION ${STONE_WEB_VIEWER_VERSION}
116 SOVERSION ${ORTHANC_PLUGIN_VERSION}) 105 SOVERSION ${STONE_WEB_VIEWER_VERSION})
117 106
118 install( 107 install(
119 TARGETS StoneWebViewer 108 TARGETS StoneWebViewer
120 RUNTIME DESTINATION lib # Destination for Windows 109 RUNTIME DESTINATION lib # Destination for Windows
121 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 110 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux