zephyr/tests/drivers/adc/adc_api/CMakeLists.txt

15 lines
430 B
CMake

cmake_minimum_required(VERSION 3.8.2)
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_base.conf")
endif()
endmacro()
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(adc_api)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})