2018-08-13 15:46:42 +08:00
|
|
|
cmake_minimum_required(VERSION 3.8.2)
|
2017-09-27 21:22:40 +08:00
|
|
|
set(KCONFIG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/Kconfig)
|
|
|
|
|
|
|
|
macro(set_conf_file)
|
|
|
|
if(EXISTS ${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf)
|
|
|
|
set(CONF_FILE "${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf")
|
|
|
|
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
|
|
|
set(CONF_FILE "prj_base.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
|
|
|
else()
|
|
|
|
set(CONF_FILE "prj_base.conf")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(NONE)
|
|
|
|
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
|
|
target_sources(app PRIVATE ${app_sources})
|