Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/Plugin/CMakeLists.txt @ 1733:2f72db02be44 StoneWebViewer-1.0
added missing version information in Windows binaries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Dec 2020 15:43:33 +0100 |
parents | 816e1634f221 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1731:816e1634f221 | 1733:2f72db02be44 |
---|---|
74 -DPLUGIN_VERSION="${STONE_WEB_VIEWER_VERSION}" | 74 -DPLUGIN_VERSION="${STONE_WEB_VIEWER_VERSION}" |
75 -DPLUGIN_NAME="stone-webviewer" | 75 -DPLUGIN_NAME="stone-webviewer" |
76 ) | 76 ) |
77 | 77 |
78 | 78 |
79 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | |
80 SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32") | |
81 | |
82 execute_process( | |
83 COMMAND | |
84 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py | |
85 ${STONE_WEB_VIEWER_VERSION} "StoneWebViewer" StoneWebViewer.dll "Stone Web viewer for medical imaging" | |
86 ERROR_VARIABLE Failure | |
87 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc | |
88 ) | |
89 | |
90 if (Failure) | |
91 message(FATAL_ERROR "Error while computing the version information: ${Failure}") | |
92 endif() | |
93 | |
94 list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc) | |
95 endif() | |
96 | |
97 | |
79 EmbedResources( | 98 EmbedResources( |
80 --no-upcase-check # For 2017-11-13-OpenSans-Regular.ttf | 99 --no-upcase-check # For 2017-11-13-OpenSans-Regular.ttf |
81 | 100 |
82 # Folders | 101 # Folders |
83 IMAGES ${ORTHANC_STONE_BINARIES}/img/ | 102 IMAGES ${ORTHANC_STONE_BINARIES}/img/ |