Mercurial > hg > orthanc-object-storage
comparison Google/CMakeLists.txt @ 101:57be7094d6c5
updated Google plugin for latest SDK
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 20 Jul 2023 16:14:39 +0200 |
parents | 431ab61b5760 |
children | 5f6cb6dff8f4 0585b5de6be2 |
comparison
equal
deleted
inserted
replaced
100:16f0abc677c5 | 101:57be7094d6c5 |
---|---|
54 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include | 54 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include |
55 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common | 55 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common |
56 ) | 56 ) |
57 | 57 |
58 find_package(CURL REQUIRED) | 58 find_package(CURL REQUIRED) |
59 find_package(storage_client REQUIRED) | 59 find_package(google_cloud_cpp_storage REQUIRED) |
60 find_package(cryptopp CONFIG REQUIRED) | 60 find_package(cryptopp CONFIG REQUIRED) |
61 | |
62 set(CMAKE_CXX_STANDARD 14) | |
61 | 63 |
62 set(COMMON_SOURCES | 64 set(COMMON_SOURCES |
63 ${CMAKE_SOURCE_DIR}/../Common/IStorage.h | 65 ${CMAKE_SOURCE_DIR}/../Common/IStorage.h |
64 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.h | 66 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.h |
65 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.cpp | 67 ${CMAKE_SOURCE_DIR}/../Common/BaseStorage.cpp |
89 SOVERSION ${PLUGIN_VERSION} | 91 SOVERSION ${PLUGIN_VERSION} |
90 ) | 92 ) |
91 | 93 |
92 target_link_libraries(OrthancGoogleCloudStorage | 94 target_link_libraries(OrthancGoogleCloudStorage |
93 PRIVATE | 95 PRIVATE |
94 storage_client | 96 CURL::libcurl |
95 cryptopp-static | 97 google-cloud-cpp::storage |
98 google-cloud-cpp::experimental-storage-grpc | |
99 cryptopp::cryptopp | |
96 ) | 100 ) |
97 | 101 |
98 add_executable(UnitTests | 102 add_executable(UnitTests |
99 ${GOOGLE_TEST_SOURCES} | 103 ${GOOGLE_TEST_SOURCES} |
100 ${COMMON_SOURCES} | 104 ${COMMON_SOURCES} |
104 ${CMAKE_SOURCE_DIR}/../UnitTestsSources/UnitTestsGcsClient.cpp | 108 ${CMAKE_SOURCE_DIR}/../UnitTestsSources/UnitTestsGcsClient.cpp |
105 ) | 109 ) |
106 | 110 |
107 target_link_libraries(UnitTests | 111 target_link_libraries(UnitTests |
108 PRIVATE | 112 PRIVATE |
109 cryptopp-static | 113 CURL::libcurl |
110 storage_client | 114 google-cloud-cpp::storage |
115 google-cloud-cpp::experimental-storage-grpc | |
116 cryptopp::cryptopp | |
111 ${GOOGLE_TEST_LIBRARIES} | 117 ${GOOGLE_TEST_LIBRARIES} |
112 ) | 118 ) |