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 FORKS) 14 zephyr_compile_definitions(FORKS=${FORKS}) 15endif() 16 17target_include_directories(app PRIVATE ${ZEPHYR_BASE}/include/zephyr/portability) 18target_sources(app PRIVATE src/main.c) 19