Mercurial > hg > orthanc-object-storage
changeset 206:afc642ccb99c
integration 2.4.0->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Jun 2024 16:16:48 +0200 |
parents | 1fe9ed55e17f (current diff) 70caa95a9072 (diff) |
children | c31fc772599a |
files | Aws/CMakeLists.txt |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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