generated from zephyrproject-rtos/example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f99bc24
commit 1abb3c5
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# How to use: Copy this file to a cmake modules folder within your project. | ||
# - Add `list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/your-cmake-modules-folder")` | ||
# - Call this module by doing `include(AddAzureSDKforC)` from the root CMakeLists.txt. | ||
# - Link your application against your CMake targets, for example, `target_link_libraries(yourApp PRIVATE az_core)`. | ||
# | ||
# This will create a _deps folder for the generated project and Azure SDK will be checked out in there. | ||
# When calling `cmake --build .`, Azure SDK will be built before your application so it can be available for your app to consume. | ||
# | ||
# CMake options for Azure SDK for C can be set together with your application CMake options. | ||
# | ||
# Note: Update GIT_TAG to the expected version from Azure SDK for C | ||
# | ||
|
||
include(FetchContent) | ||
FetchContent_Declare(azuresdkforc | ||
GIT_REPOSITORY https://github.com/Azure/azure-sdk-for-c.git | ||
GIT_TAG 1.5.0) | ||
FetchContent_GetProperties(azuresdkforc) | ||
if(NOT azuresdkforc_POPULATED) | ||
FetchContent_Populate(azuresdkforc) | ||
add_subdirectory(${azuresdkforc_SOURCE_DIR} ${azuresdkforc_BINARY_DIR} EXCLUDE_FROM_ALL) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters