# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

target_include_directories(mbed-emac
    PUBLIC
        .
        r_ether_rza2
        r_ether_rza2/src/phy
        r_ether_rza2/src/targets/TARGET_GR_MANGO
    PRIVATE
        r_ether_rza2/src
)

target_sources(mbed-emac
    PRIVATE
        rza2_emac.cpp
        r_ether_rza2/src/r_ether_rza2.c
        r_ether_rza2/src/phy/phy.c
        r_ether_rza2/src/targets/TARGET_GR_MANGO/r_ether_setting_rza2m.c
)

# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

target_include_directories(mbed-emac
    INTERFACE
        .
        r_ether_rza2
        r_ether_rza2/src/phy
        r_ether_rza2/src/targets/TARGET_GR_MANGO
        r_ether_rza2/src
)

target_sources(mbed-emac
    INTERFACE
        rza2_emac.cpp
        r_ether_rza2/src/r_ether_rza2.c
        r_ether_rza2/src/phy/phy.c
        r_ether_rza2/src/targets/TARGET_GR_MANGO/r_ether_setting_rza2m.c
)

Fix dirs and sources visibility for mbed-emac CMake target
CMake: Fix dirs and sources visibility for mbed-emac CMake target

The mbed-emac CMake target is an interface library and as such its
include dirs and sources have to be have the INTERFACE visibility.
