jothikumar mani | ad5b37d | 2023-06-06 20:25:39 +0800 | [diff] [blame] | 1 | #/** @file |
| 2 | # * Copyright (c) 2023, Arm Limited or its affiliates. All rights reserved. |
| 3 | # * SPDX-License-Identifier : Apache-2.0 |
| 4 | # * |
| 5 | # * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # * you may not use this file except in compliance with the License. |
| 7 | # * You may obtain a copy of the License at |
| 8 | # * |
| 9 | # * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # * |
| 11 | # * Unless required by applicable law or agreed to in writing, software |
| 12 | # * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # * See the License for the specific language governing permissions and |
| 15 | # * limitations under the License. |
| 16 | #**/ |
| 17 | |
| 18 | if(NOT DEFINED SECURE_DEBUG_ROOT) |
| 19 | get_filename_component(SECURE_DEBUG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/.. ABSOLUTE) |
| 20 | endif() |
| 21 | |
| 22 | include_directories(${SECURE_DEBUG_ROOT}/external/mbedtls/include) |
| 23 | |
| 24 | set(MBEDTLS_FATAL_WARNINGS OFF CACHE BOOL "Disable fatal warnings" FORCE) |
| 25 | set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable PROGRAMS" FORCE) |
| 26 | set(ENABLE_TESTING OFF CACHE BOOL "Disable TESTING" FORCE) |
| 27 | add_subdirectory(${SECURE_DEBUG_ROOT}/external/mbedtls mbedcrypto) |
| 28 | |
| 29 | set_target_properties(mbedtls mbedx509 PROPERTIES |
| 30 | EXCLUDE_FROM_ALL 1 |
| 31 | EXCLUDE_FROM_DEFAULT_BUILD 1) |