blob: 167d30539ca2c71289fe30ace8a5143250672223 [file] [log] [blame]
#/** @file
# * Copyright (c) 2021 Arm Limited or its affiliates. All rights reserved.
# * SPDX-License-Identifier : Apache-2.0
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
#**/
foreach(test ${PSA_TEST_LIST})
include(${PSA_SUITE_DIR}/${test}/test.cmake)
foreach(source_file ${CC_SOURCE})
list(APPEND SUITE_CC_SOURCE
${PSA_SUITE_DIR}/${test}/${source_file}
)
endforeach()
unset(CC_SOURCE)
endforeach()
add_definitions(${CC_OPTIONS})
add_library(${TEST_COMBINE_LIB} STATIC ${SUITE_CC_SOURCE})
# Test related Include directories
foreach(test ${PSA_TEST_LIST})
target_include_directories(${TEST_COMBINE_LIB} PRIVATE ${PSA_SUITE_DIR}/${test})
endforeach()
target_include_directories(${TEST_COMBINE_LIB} PRIVATE
${CMAKE_BINARY_DIR}
${PSA_ROOT_DIR}/val/include
${PSA_ROOT_DIR}/platform/${TARGET}/include
)
target_link_libraries(${TEST_COMBINE_LIB} mbedcrypto)