19 lines
488 B
CMake
19 lines
488 B
CMake
set(KCONFIG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/Kconfig)
|
|
|
|
macro(set_conf_file)
|
|
if(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
|
set(CONF_FILE "prj_base.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
|
else()
|
|
set(CONF_FILE "prj_virtual.conf")
|
|
endif()
|
|
endmacro()
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(NONE)
|
|
|
|
add_subdirectory(common)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
|
|
target_sources(app PRIVATE ${app_sources})
|