From e8f8a01e690529a2807a9b9a84dbcc89fc1d51a2 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Thu, 3 Jun 2021 17:58:58 +0000 Subject: [PATCH] Docs: link to root Getting Started section from Storage's readme (#2388) * Docs: link to root Getting Started section from Storage's readme * Move section Co-authored-by: Anton Kolesnyk --- sdk/storage/README.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/sdk/storage/README.md b/sdk/storage/README.md index 5b3470637..04774e98d 100644 --- a/sdk/storage/README.md +++ b/sdk/storage/README.md @@ -101,9 +101,27 @@ make/ninja install is work in progress. WIP TODO when ready. -### Via Vcpkg -WIP -TODO when ready. +### Via vcpkg +The easiest way to acquire the C++ SDK is leveraging vcpkg package manager. See the corresponding [Azure SDK for C++ readme section][azsdk_vcpkg_install]. + +To install Azure Storage packages via vcpkg: + +```cmd +> vcpkg install azure-storage-blobs-cpp azure-storage-files-datalake-cpp azure-storage-files-shares-cpp +``` + +Then, use in your CMake file: + +```CMake +find_package(azure-storage-blobs-cpp CONFIG REQUIRED) +target_link_libraries( PRIVATE Azure::azure-storage-blobs) + +find_package(azure-storage-files-datalake-cpp CONFIG REQUIRED) +target_link_libraries( PRIVATE Azure::azure-storage-files-datalake) + +find_package(azure-storage-files-shares-cpp CONFIG REQUIRED) +target_link_libraries( PRIVATE Azure::azure-storage-files-shares) +``` ## Dependencies @@ -116,3 +134,6 @@ To get started with the coding, please visit the following code samples: - [How to use Blob Storage from C++](https://github.com/Azure/azure-sdk-for-cpp/blob/master/sdk/storage/azure-storage-blobs/sample/blob_getting_started.cpp) - [How to use DataLake Gen 2 Storage from C++](https://github.com/Azure/azure-sdk-for-cpp/blob/master/sdk/storage/azure-storage-files-datalake/sample/datalake_getting_started.cpp) - [How to use File Storage from C++](https://github.com/Azure/azure-sdk-for-cpp/blob/master/sdk/storage/azure-storage-files-shares/sample/file_share_getting_started.cpp) + + +[azsdk_vcpkg_install]: https://github.com/Azure/azure-sdk-for-cpp#download--install-the-sdk