1#------------------------------------------------------------------------------- 2# Copyright (c) 2020-2022 Cypress Semiconductor Corporation (an Infineon company) 3# or an affiliate of Cypress Semiconductor Corporation. All rights reserved. 4# 5# SPDX-License-Identifier: BSD-3-Clause 6# 7#------------------------------------------------------------------------------- 8 9fetch_remote_library( 10 LIB_NAME mtb-pdl-cat1 11 LIB_SOURCE_PATH_VAR CY_MTB_PDL_CAT1_LIB_PATH 12 LIB_PATCH_DIR ${CMAKE_CURRENT_LIST_DIR} 13 LIB_FORCE_PATCH CY_MTB_PDL_CAT1_FORCE_PATCH 14 FETCH_CONTENT_ARGS 15 GIT_REPOSITORY https://github.com/Infineon/mtb-pdl-cat1.git 16 GIT_TAG ${CY_MTB_PDL_CAT1_LIB_VERSION} 17 GIT_SHALLOW TRUE 18 GIT_PROGRESS TRUE 19 GIT_SUBMODULES "" 20) 21 22#------------------------------------------------------------------------------- 23 24cmake_minimum_required(VERSION 3.13) 25 26project("Cypress PSoC 6 Peripheral Driver Library" LANGUAGES C ASM) 27 28cmake_policy(SET CMP0076 NEW) 29cmake_policy(SET CMP0079 NEW) 30 31if (NOT DEFINED MTB_PDL_CAT1_LIB_S_TARGET) 32 set(MTB_PDL_CAT1_LIB_S_TARGET mtb-pdl-cat1_lib_s) 33endif() 34if (NOT DEFINED MTB_PDL_CAT1_LIB_NS_TARGET) 35 set(MTB_PDL_CAT1_LIB_NS_TARGET mtb-pdl-cat1_lib_ns) 36endif() 37 38set(CY_PLATFORM_DIR ${PLATFORM_DIR}/ext/target/${TFM_PLATFORM}) 39set(CY_CORE_LIB_PATH ${CY_PLATFORM_DIR}/libs/core-lib) 40 41add_subdirectory(mtb-pdl-cat1_s_lib) 42add_subdirectory(mtb-pdl-cat1_ns_lib) 43