1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4cmake_minimum_required(VERSION 3.20.0)
5
6# This adds the example module to the list of extra zephyr modules
7list(APPEND EXTRA_ZEPHYR_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/example_as_module")
8
9find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10project(handler_demo)
11
12target_sources(app PRIVATE src/main.c)
13
14# Include handler files
15if(CONFIG_MCUMGR_GRP_EXAMPLE_APP)
16  target_sources(app PRIVATE example_as_module/src/example_mgmt.c)
17  zephyr_include_directories(example_as_module/include)
18endif()
19