# HG changeset patch # User Sebastien Jodogne # Date 1719411408 -7200 # Node ID afc642ccb99ca1f9aecb9f9b8721dbf9b34eb5af # Parent 1fe9ed55e17f50c0fef8559bbf6c4d8c1a1903fa# Parent 70caa95a9072e298887329fd05277fabe440e62a integration 2.4.0->mainline diff -r 1fe9ed55e17f -r afc642ccb99c Aws/CMakeLists.txt --- a/Aws/CMakeLists.txt Wed Jun 26 15:49:14 2024 +0200 +++ b/Aws/CMakeLists.txt Wed Jun 26 16:16:48 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