cmake_minimum_required(VERSION 3.13.1)

# Use custom MCUBoot definitions
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf")
    list(APPEND mcuboot_OVERLAY_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf")
endif()

# Use a custom board definition
set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})
set(BOARD dng_nrf9160ns)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(app)
target_sources(app PRIVATE src/main.c)
