Mercurial > hg > orthanc-object-storage
changeset 205:70caa95a9072 2.4.0
added Windows resources to the DLL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Jun 2024 16:16:24 +0200 |
parents | bb19f1ed9cd9 |
children | afc642ccb99c |
files | Aws/CMakeLists.txt |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Aws/CMakeLists.txt Wed Jun 26 13:10:38 2024 +0200 +++ b/Aws/CMakeLists.txt Wed Jun 26 16:16:24 2024 +0200 @@ -118,6 +118,24 @@ endif() +if (CMAKE_SYSTEM_NAME STREQUAL "Windows") + execute_process( + COMMAND + ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py + ${PLUGIN_VERSION} "AWS S3 plugin" OrthancAwsS3Storage.dll + "AWS S3 plugin for Orthanc" + ERROR_VARIABLE Failure + OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/Version.rc + ) + + if (Failure) + message(FATAL_ERROR "Error while computing the version information: ${Failure}") + endif() + + list(APPEND AUTOGENERATED_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/Version.rc) +endif() + + add_definitions( -DHAS_ORTHANC_EXCEPTION=1 -DORTHANC_ENABLE_LOGGING=1 @@ -168,6 +186,7 @@ ${CMAKE_SOURCE_DIR}/../Common/StoragePlugin.cpp ${COMMON_SOURCES} + ${AUTOGENERATED_SOURCES} ) set_target_properties(OrthancAwsS3Storage PROPERTIES