Newer
Older
mbed-os / connectivity / drivers / 802.15.4_RF / CMakeLists.txt
@Jamie Smith Jamie Smith on 14 Sep 2022 630 bytes Convert 802.15.4 and nfc to STATIC
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-802.15.4-rf STATIC EXCLUDE_FROM_ALL)

target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-core-flags)

if("Freescale" IN_LIST MBED_TARGET_LABELS)
    add_subdirectory(TARGET_Freescale)
    add_subdirectory(mcr20a-rf-driver)
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
    add_subdirectory(TARGET_Silicon_Labs)
elseif("STM" IN_LIST MBED_TARGET_LABELS)
    add_subdirectory(stm-s2lp-rf-driver)
endif()

add_subdirectory(atmel-rf-driver)

target_link_libraries(mbed-nanostack
    INTERFACE
        mbed-802.15.4-rf
)