azure-sdk-for-c/CMakeLists.txt

35 строки
1.1 KiB
CMake
Исходник Обычный вид История

# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
2019-07-31 01:43:32 +03:00
cmake_minimum_required (VERSION 3.12)
option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" ON)
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
elseif(DEFINED ENV{VCPKG_INSTALLATION_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
endif()
if(DEFINED ENV{VCPKG_DEFAULT_TRIPLET} AND NOT DEFINED VCPKG_TARGET_TRIPLET)
set(VCPKG_TARGET_TRIPLET "$ENV{VCPKG_DEFAULT_TRIPLET}" CACHE STRING "")
endif()
project(az LANGUAGES C)
enable_testing ()
include(eng/cmake/global_compile_options.txt)
add_subdirectory(sdk/core/core)
add_subdirectory(sdk/transport_policies/curl)
add_subdirectory(sdk/keyvault/keyvault)
add_subdirectory(sdk/storage/blobs)
if(NOT DEFINED ENV{AZ_SDK_C_NO_SAMPLES})
add_subdirectory(sdk/keyvault/keyvault/samples)
add_subdirectory(sdk/storage/blobs/samples)
endif()
JSON parser (#27) * core library template. * az_core * let * minor * AZ_CSTR * az_str and az_static_assert. * az_cstr * length * stream * az_http * test * test * more functions * additional options * data state * another try * more * strange * number draft * az_json_number * number + string * keywords * az_json_token * data types. * data types * Slices and index ranges. * JSON token * reorder * readme * Thoughts about reactive parser. * something new * errors * digit, string * state * readme files * issues * comments * notes * it works * readme.md * a lot * pointers * another test * No need for JSON state. * No need for az_sign.h * Stack overflow check. * az_const_str_eq * minor. * ++*p => *p += 1 * C99 unions, stack push/pop. * more tests. * Update documentation. * Symols. * az_is_digit => isdigit * Changes. * Simplify number parsing. * test * Less nested `if`. * AZ_MAKE_ERROR / AZ_MAKE_RESULT * RETURN_IF_NOT_OK. * az_const_str * az_dec_number * Test * AZ_SPAN * Span of bytes. * tests * run tests * enable_testing() * Fix test * Address comments. * az_json_read. * az_span * Reader * const bug * Tabs -> spaces (#37) * Remove the last tab occurrence (appeared after the most recent merge) (#38) * Tabs -> spaces * internal PR (#39) * az_option_byte * refactoring for az_json_read_keyword_rest * az_json_read_string_rest * az_span_reader improved. * az_const_span_sub * clang-format. * CLANG * address comments * formatting. * Add core error for any argument-related errors (#40) * Comments. * Update clang-format and reformat core files (#42) Update clang-format and reformat core files * Remove az_option * Revert "Remove az_option" This reverts commit bad54a61702ef5e77c16a631d9339862b4878a27. * EOF * Add prefix/suffix header files; Switch to 100 char width style (#43) * Add prefix/suffix header files * Switch code formatting back to 100 char max width * EOL@EOF * Fix forgotten instance to include epilog * Shorten the name for AZ_CORE_ERROR_ARGUMENT, as seen in another Sergey's branch. (#44) * _az_cfg * AZ_ERROR_FLAG * static assert * counter * inline static_assert * dummy * another one * dummy function. * defaults * static inline * static * main * GCC * UNIX
2019-10-02 06:48:21 +03:00
# add_subdirectory(sdk/storage/ustorageclient)