# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(newlib_thread_safety)


target_sources_ifdef(
  CONFIG_NEWLIB_THREAD_SAFETY_TEST_LOCKS
  app PRIVATE src/locks.c
  )

target_sources_ifdef(
  CONFIG_NEWLIB_THREAD_SAFETY_TEST_STRESS
  app PRIVATE src/stress.c
  )
