blob: 014d0c8bb11031671fc800d2e873da4e0cbfc0e9 [file] [log] [blame]
jothikumar maniad5b37d2023-06-06 20:25:39 +08001#/** @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
18if(NOT DEFINED SECURE_DEBUG_ROOT)
19 get_filename_component(SECURE_DEBUG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/.. ABSOLUTE)
20endif()
21
22include_directories(${SECURE_DEBUG_ROOT}/external/mbedtls/include)
23
24set(MBEDTLS_FATAL_WARNINGS OFF CACHE BOOL "Disable fatal warnings" FORCE)
25set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable PROGRAMS" FORCE)
26set(ENABLE_TESTING OFF CACHE BOOL "Disable TESTING" FORCE)
27add_subdirectory(${SECURE_DEBUG_ROOT}/external/mbedtls mbedcrypto)
28
29set_target_properties(mbedtls mbedx509 PROPERTIES
30 EXCLUDE_FROM_ALL 1
31 EXCLUDE_FROM_DEFAULT_BUILD 1)