#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
cmake_minimum_required(VERSION 3.13.1)
# Re-direct the directory where the 'boards' directory is found from
# $ZEPHYR_BASE to this directory.
set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})

set(BOARD_FLASH_RUNNER jlink)
#set(BOARD 001_A_R1)
#set(BOARD nrf52840dk_nrf52840)
#set(BOARD nrf52dk_nrf52832)
set(BOARD 001ar1_nrf52832)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

project(buckle)

#compile flags need to be configured via Kconfig
#set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb3")

# NORDIC SDK APP START
target_sources(app PRIVATE
  src/main.c
  src/powermgr_buckle.c
  src/battery_buckle.c
)
# NORDIC SDK APP END
zephyr_library_include_directories(.)

include_directories(build_output)
