#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
cmake_minimum_required(VERSION 3.13.1)

list(INSERT OVERLAY_CONFIG 0 ../common/overlay-ot-defaults.conf)
list(INSERT OVERLAY_CONFIG 0 overlay-usb-log.conf overlay-mtd.conf)
list(INSERT OVERLAY_CONFIG 0 overlay-nfc.conf )


find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

project(openthread_coap_client)

target_sources(app PRIVATE src/coap_client.c
			   src/coap_client_utils.c src/ndef_file_m.c 
                                           src/nfc_Parser.c )

target_sources_ifdef(CONFIG_BT_NUS app PRIVATE src/ble_utils.c)


target_include_directories(app PUBLIC ../coap_server/interface)
add_subdirectory(src/sensor_node/sht35)
add_subdirectory(src/sensor_node/lps22hb)
add_subdirectory(src/sensor_node/BME680)
add_subdirectory(src/sensor_node/SI1151)
add_subdirectory(src/sensor_node/LSM6DS)
add_subdirectory(src/pmic_driver)
