1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 5project(philosophers) 6 7if(DEFINED DEBUG_PRINTF) 8 zephyr_compile_definitions(DEBUG_PRINTF=${DEBUG_PRINTF}) 9endif() 10if(DEFINED SAME_PRIO) 11 zephyr_compile_definitions(SAME_PRIO) 12endif() 13if(DEFINED STATIC_OBJS) 14 zephyr_compile_definitions(STATIC_OBJS) 15endif() 16if(DEFINED FORKS) 17 zephyr_compile_definitions(FORKS=${FORKS}) 18endif() 19target_sources(app PRIVATE src/main.c) 20