1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5project(coap_server)
6
7FILE(GLOB app_sources src/*.c)
8target_sources(app PRIVATE ${app_sources})
9target_include_directories(app PRIVATE ${ZEPHYR_BASE}/subsys/net/ip)
10
11# Support LD linker template
12zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
13
14# Support CMake linker generator
15zephyr_iterable_section(
16  NAME coap_resource_coap_server
17  GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT}
18  SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN})
19
20include(${ZEPHYR_BASE}/samples/net/common/common.cmake)
21