Mercurial > hg > orthanc-object-storage
comparison Azure/CMakeLists.txt @ 89:62752402edbb
azure build for Windows platform
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 28 Nov 2022 14:57:54 +0100 |
parents | 431ab61b5760 |
children | 7bf31db5497e |
comparison
equal
deleted
inserted
replaced
88:43c2644e55a4 | 89:62752402edbb |
---|---|
52 ${ORTHANC_FRAMEWORK_ROOT} | 52 ${ORTHANC_FRAMEWORK_ROOT} |
53 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include | 53 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include |
54 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common | 54 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common |
55 ) | 55 ) |
56 | 56 |
57 | |
58 find_package(cryptopp CONFIG REQUIRED) | 57 find_package(cryptopp CONFIG REQUIRED) |
59 | 58 |
60 # Azure stuff (from https://github.com/Microsoft/vcpkg/issues/6277) | 59 # Azure stuff (from https://github.com/Microsoft/vcpkg/issues/6277) |
61 if (NOT WIN32) | 60 if (NOT WIN32) |
62 find_package(cpprestsdk CONFIG REQUIRED) | 61 find_package(cpprestsdk CONFIG REQUIRED) |
75 set (CMAKE_CXX_STANDARD_REQUIRED ON) | 74 set (CMAKE_CXX_STANDARD_REQUIRED ON) |
76 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHa") | 75 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHa") |
77 set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") | 76 set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") |
78 set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF") | 77 set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF") |
79 | 78 |
79 message(INFO "WASTORAGE_INCLUDE_DIR ${WASTORAGE_INCLUDE_DIR}") | |
80 | |
80 add_definitions(-D_NO_WASTORAGE_API=1) # from https://github.com/Azure/azure-storage-cpp/issues/263 | 81 add_definitions(-D_NO_WASTORAGE_API=1) # from https://github.com/Azure/azure-storage-cpp/issues/263 |
81 endif() | 82 endif() |
82 | 83 |
84 include_directories(${WASTORAGE_INCLUDE_DIR}) | |
83 | 85 |
84 if (NOT WIN32) | |
85 include_directories(${WASTORAGE_INCLUDE_DIR}) | |
86 endif() | |
87 | 86 |
88 set(COMMON_SOURCES | 87 set(COMMON_SOURCES |
89 ${CMAKE_SOURCE_DIR}/../Common/IStorage.h | 88 ${CMAKE_SOURCE_DIR}/../Common/IStorage.h |
90 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.h | 89 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.h |
91 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.cpp | 90 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.cpp |
127 cpprestsdk::cpprest | 126 cpprestsdk::cpprest |
128 ) | 127 ) |
129 else() | 128 else() |
130 target_link_libraries(OrthancAzureBlobStorage | 129 target_link_libraries(OrthancAzureBlobStorage |
131 PRIVATE | 130 PRIVATE |
132 cryptopp-static | 131 cryptopp::cryptopp |
133 ${OPENSSL_LIBRARY} | 132 ${OPENSSL_LIBRARY} |
134 ${WASTORAGE_LIBRARY} | 133 ${WASTORAGE_LIBRARY} |
135 ${CPPREST_LIBRARY} | 134 ${CPPREST_LIBRARY} |
136 Winhttp.lib | 135 Winhttp.lib |
137 Crypt32.lib | 136 Crypt32.lib |