From 72253e095745a3ccfdd8857b9d7896f5b0e77b5f Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Fri, 29 Jan 2021 21:53:16 -0800 Subject: [PATCH] CMakeLists for each Service (#1524) * Add service level CMakeLists * Fix CMake minimum version --- CMakeLists.txt | 11 ++++------- sdk/core/CMakeLists.txt | 12 ++++++++++++ sdk/identity/CMakeLists.txt | 2 +- sdk/template/CMakeLists.txt | 11 +++++++++++ 4 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 sdk/core/CMakeLists.txt create mode 100644 sdk/template/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d56bbc62..203b95dd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,11 +64,8 @@ include(AzureDoxygen) include(AzureVersion) # sub-projects -# add_subdirectory(sdk/core/performance-stress) -add_subdirectory(sdk/core/azure-core) - -add_subdirectory(sdk/identity/azure-identity) - -add_subdirectory(sdk/storage) -add_subdirectory(sdk/template/azure-template) +add_subdirectory(sdk/core) +add_subdirectory(sdk/identity) add_subdirectory(sdk/keyvault) +add_subdirectory(sdk/storage) +add_subdirectory(sdk/template) diff --git a/sdk/core/CMakeLists.txt b/sdk/core/CMakeLists.txt new file mode 100644 index 000000000..c2df8a61a --- /dev/null +++ b/sdk/core/CMakeLists.txt @@ -0,0 +1,12 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# SPDX-License-Identifier: MIT + +cmake_minimum_required (VERSION 3.13) + +project (azure-core LANGUAGES CXX) +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + +add_subdirectory(azure-core) +# add_subdirectory(performance-stress) diff --git a/sdk/identity/CMakeLists.txt b/sdk/identity/CMakeLists.txt index 3a72a6011..95461d44a 100644 --- a/sdk/identity/CMakeLists.txt +++ b/sdk/identity/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # SPDX-License-Identifier: MIT -cmake_minimum_required (VERSION 3.12) +cmake_minimum_required (VERSION 3.13) project (azure-identity LANGUAGES CXX) set(CMAKE_CXX_STANDARD 14) diff --git a/sdk/template/CMakeLists.txt b/sdk/template/CMakeLists.txt new file mode 100644 index 000000000..5e2e41aef --- /dev/null +++ b/sdk/template/CMakeLists.txt @@ -0,0 +1,11 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# SPDX-License-Identifier: MIT + +cmake_minimum_required (VERSION 3.13) + +project (azure-template LANGUAGES CXX) +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + +add_subdirectory(azure-template)