18 lines
515 B
CMake
18 lines
515 B
CMake
cmake_minimum_required(VERSION 3.8.2)
|
|
|
|
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.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
|
else()
|
|
set(CONF_FILE "prj.conf")
|
|
endif()
|
|
endmacro()
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(lldp)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|