azure-sdk-for-cpp/samples/integration/vcpkg-all-smoke
Larry Osterman 0fd02674fe
Moved attestation factory back to static method on attestation class … (#3682)
* Moved attestation factory back to static method on attestation class and return a concrete type not a pointer

* Fixed factory in readme file
2022-06-01 18:33:59 +00:00
..
src Moved attestation factory back to static method on attestation class … (#3682) 2022-06-01 18:33:59 +00:00
CMakeLists.txt Add attestation clients (#3464) 2022-03-23 12:50:02 -07:00
LICENSE
README.md

Smoketest the Azure SDK for C++ into your application using vcpkg

This application instantiates all the sdk clients, and call one API from each in order to check their side by side capabilities

Pre-requisites

There are two options to set up the development environment:

Manual installation

Install the Azure SDK for C++ dependencies.

  • CMake project (min version 3.13).
  • C++ version 14 or greater.

Build

Linux terminal

#
# Building the application.
# Instructions from application root directory.
#

# Create build directory just the first time.
mkdir build
cd build

# Generate and build
# This code assumes that the SDK dependencies were installed with vcpkg
# When using docker provided container, the TOOLCHAIN option is not required (cmake ..).
cmake -DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg/scripts/buildsystems/vcpkg.cmake ..
cmake -build .

Windows VS

If you are using Visual Studio, the toolchain to link vcpkg is set with CMakeSettings.json. Update this file and set the vcpkg toolchain file for vcpkg (VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake). After setting the toolchain, VS can generate and build the sample. Use VS to open the sample folder only.

Run application

Review source code header for environment variables that must be set up before running the app.

#
# Running the Application
# Instructions from inside the build directory.
#

# Run binary (.exe on Windows)
./smoketest-vcpkg