#------------------------------------------------------------------------------- # Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # #------------------------------------------------------------------------------- set(PSA_ARCH_TESTS_URL "https://github.com/ARM-software/psa-arch-tests.git" CACHE STRING "psa-arch-tests repository URL") set(PSA_ARCH_TESTS_REFSPEC "74dc6646ff594e131a726a5305aba77bac30eceb" CACHE STRING "psa-arch-tests refspec") set(PSA_ARCH_TESTS_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_deps/psa_arch_tests-src" CACHE PATH "psa-arch-tests source.") set(PSA_ARCH_TESTS_BUILD_TYPE "Release" CACHE STRING "psa-arch-tests build type.") set(GIT_OPTIONS GIT_REPOSITORY ${PSA_ARCH_TESTS_URL} GIT_TAG ${PSA_ARCH_TESTS_REFSPEC} GIT_SHALLOW FALSE ) include(${TS_ROOT}/tools/cmake/common/LazyFetch.cmake REQUIRED) LazyFetch_MakeAvailable(DEP_NAME psa_arch_tests FETCH_OPTIONS "${GIT_OPTIONS}" SOURCE_DIR ${PSA_ARCH_TESTS_SOURCE_DIR} SOURCE_SUBDIR "api-tests" CACHE_FILE "${CMAKE_CURRENT_LIST_DIR}/psa-arch-test-init-cache.cmake.in" ) # Create targets for generated libraries add_library(test_combine STATIC IMPORTED) set_property(TARGET test_combine PROPERTY IMPORTED_LOCATION "${psa_arch_tests_BINARY_DIR}/dev_apis/${TS_ARCH_TEST_BUILD_SUBDIR}/test_combine${CMAKE_STATIC_LIBRARY_SUFFIX}") set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${psa_arch_tests_BINARY_DIR}/dev_apis/${TS_ARCH_TEST_BUILD_SUBDIR}/test_combine${CMAKE_STATIC_LIBRARY_SUFFIX}") set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${PSA_ARCH_TESTS_SOURCE_DIR}/api-tests/val/nspe/val_entry.h") add_library(val_nspe STATIC IMPORTED) set_property(TARGET val_nspe PROPERTY IMPORTED_LOCATION "${psa_arch_tests_BINARY_DIR}/val/val_nspe${CMAKE_STATIC_LIBRARY_SUFFIX}") add_library(pal_nspe STATIC IMPORTED) set_property(TARGET pal_nspe PROPERTY IMPORTED_LOCATION "${psa_arch_tests_BINARY_DIR}/platform/pal_nspe${CMAKE_STATIC_LIBRARY_SUFFIX}")