blob: 4c43774ee6b4ec0bcb89d7a7db1ce50dbbc80b8e [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(philosophers_cmsis_rtos_v1)
if(DEFINED DEBUG_PRINTF)
zephyr_compile_definitions(DEBUG_PRINTF=${DEBUG_PRINTF})
endif()
if(DEFINED SAME_PRIO)
zephyr_compile_definitions(SAME_PRIO)
endif()
if(DEFINED FORKS)
zephyr_compile_definitions(FORKS=${FORKS})
endif()
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/include/zephyr/portability)
target_sources(app PRIVATE src/main.c)