blob: 82e7a3a6eeb7f1ba19a9917457aad1a1fa51c24d [file] [log] [blame]
#
# Copyright (c) 2018-2021 mcumgr authors
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
# OS Management group public API is exposed through zephyr_interface,
# when OS Management is enabled.
add_library(mgmt_mcumgr_grp_os src/os_mgmt.c)
target_include_directories(mgmt_mcumgr_grp_os PUBLIC include)
target_link_libraries(mgmt_mcumgr_grp_os PRIVATE
zephyr_interface mgmt_mcumgr_mgmt mgmt_mcumgr_util
)
if (CONFIG_REBOOT)
target_link_libraries(mgmt_mcumgr_grp_os PRIVATE kernel)
endif()
target_link_libraries(mgmt_mcumgr INTERFACE mgmt_mcumgr_grp_os)