* Use GetTestCredentials in eventhubs admin client; updated samples to allow sample execution to be disabled * Made sample execution optional * re-enabled building keyvault samples * Disabled RetrieveMultipleEvents test * Disabled RetrieveMultipleEvents test * Pull request feedback
28 lines
713 B
CMake
28 lines
713 B
CMake
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
cmake_minimum_required (VERSION 3.13)
|
|
|
|
project (attestation-policy LANGUAGES CXX)
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
macro (define_sample samplename)
|
|
add_executable (
|
|
attestation-${samplename}
|
|
${samplename}.cpp
|
|
cryptohelpers.hpp
|
|
)
|
|
|
|
CREATE_PER_SERVICE_TARGET_BUILD_FOR_SAMPLE(attestation attestation-${samplename} DISABLE_RUN)
|
|
|
|
target_link_libraries(attestation-${samplename} PRIVATE azure-security-attestation azure-identity get-env-helper)
|
|
|
|
endmacro()
|
|
|
|
DEFINE_SAMPLE(get_policy)
|
|
DEFINE_SAMPLE(set_policy)
|
|
DEFINE_SAMPLE(reset_policy)
|
|
DEFINE_SAMPLE(set_sealed_policy)
|
|
DEFINE_SAMPLE(reset_sealed_policy)
|