changeset 1734:940575fba346

integration StoneWebViewer-1.0 -> mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Dec 2020 15:43:58 +0100
parents 17684d0b02c3 (current diff) 2f72db02be44 (diff)
children 2bb735d76726
files
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt	Wed Dec 02 13:27:30 2020 +0100
+++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt	Wed Dec 02 15:43:58 2020 +0100
@@ -76,6 +76,25 @@
   )
 
 
+if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+  SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32")
+
+  execute_process(
+    COMMAND 
+    ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py
+    ${STONE_WEB_VIEWER_VERSION} "StoneWebViewer" StoneWebViewer.dll "Stone Web viewer for medical imaging"
+    ERROR_VARIABLE Failure
+    OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc
+    )
+
+  if (Failure)
+    message(FATAL_ERROR "Error while computing the version information: ${Failure}")
+  endif()
+
+  list(APPEND AUTOGENERATED_SOURCES  ${AUTOGENERATED_DIR}/Version.rc)
+endif()
+
+
 EmbedResources(
   --no-upcase-check  # For 2017-11-13-OpenSans-Regular.ttf