1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 5project(newlib_thread_safety) 6 7 8target_sources_ifdef( 9 CONFIG_NEWLIB_THREAD_SAFETY_TEST_LOCKS 10 app PRIVATE src/locks.c 11 ) 12 13target_sources_ifdef( 14 CONFIG_NEWLIB_THREAD_SAFETY_TEST_STRESS 15 app PRIVATE src/stress.c 16 ) 17