blob: 95344d31d9c10610611758ed830312158ad3394a [file] [log] [blame]
cmake_minimum_required(VERSION 3.13.1)
if(BOARD STREQUAL nrf52840_pca10056)
set(CONF_FILE nrf5x.conf)
endif()
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(large)
if(BOARD STREQUAL qemu_x86)
zephyr_compile_definitions(
-DTEST_FLASH_OFFSET=0
-DDT_FLASH_AREA_STORAGE_OFFSET=0
-DDT_FLASH_AREA_STORAGE_SIZE=1048576
)
elseif(BOARD STREQUAL nrf52840_pca10056)
zephyr_compile_definitions(
-DTEST_FLASH_OFFSET=0x20000
)
endif()
if(NOT TEST)
target_compile_definitions(app PRIVATE
-DTEST_basic
)
else()
target_compile_definitions(app PRIVATE
-DTEST_${TEST}
)
endif()
zephyr_include_directories(../common)
FILE(GLOB app_sources ../common/*.c src/*.c)
target_sources(app PRIVATE ${app_sources})