#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

cmake_minimum_required(VERSION 3.5)

cmake_policy(SET CMP0074 NEW)
cmake_policy(SET CMP0012 NEW)

project(iothub_client_sample_upload_to_blob)

if(WIN32)
    message(FATAL_ERROR "This CMake file only supports Linux builds!")
endif()

find_package(azure_iot_sdks REQUIRED)

add_definitions(-DSET_TRUSTED_CERT_IN_SAMPLES)
include_directories("../../../../certs")

set(iothub_client_sample_upload_to_blob_c_files
    ../iothub_client_sample_upload_to_blob.c
    ../../../../certs/certs.c
)

add_executable(iothub_client_sample_upload_to_blob ${iothub_client_sample_upload_to_blob_c_files})

target_link_libraries(iothub_client_sample_upload_to_blob
    iothub_client
)
