2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-05-29 12:02:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 22:54:09 +08:00
|
|
|
project(philosophers)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2020-04-11 22:53:33 +08:00
|
|
|
if(DEFINED DEBUG_PRINTF)
|
2020-04-14 15:59:12 +08:00
|
|
|
zephyr_compile_definitions(DEBUG_PRINTF=${DEBUG_PRINTF})
|
2020-04-11 22:53:33 +08:00
|
|
|
endif()
|
|
|
|
if(DEFINED SAME_PRIO)
|
|
|
|
zephyr_compile_definitions(SAME_PRIO)
|
|
|
|
endif()
|
|
|
|
if(DEFINED STATIC_OBJS)
|
|
|
|
zephyr_compile_definitions(STATIC_OBJS)
|
|
|
|
endif()
|
|
|
|
if(DEFINED FORKS)
|
|
|
|
zephyr_compile_definitions(FORKS=${FORKS})
|
|
|
|
endif()
|
2017-10-27 21:43:34 +08:00
|
|
|
target_sources(app PRIVATE src/main.c)
|