# HG changeset patch # User Sebastien Jodogne # Date 1719411384 -7200 # Node ID 70caa95a9072e298887329fd05277fabe440e62a # Parent bb19f1ed9cd97d5bc1956d70a56b3ebd73096556 added Windows resources to the DLL diff -r bb19f1ed9cd9 -r 70caa95a9072 Aws/CMakeLists.txt --- 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