zephyr/samples/net/common/common.cmake
Jukka Rissanen 3c6d3ed6c2 samples: net: echo-server: Refactor VLAN support
Move the common VLAN setup code to samples/net/common directory
so that other network samples can utilize that too.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-20 17:16:10 +01:00

10 lines
335 B
CMake

# SPDX-License-Identifier: Apache-2.0
# Common routines used in net samples
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/samples/net/common/)
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/net/common/net_sample_common.c)
target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE
$ENV{ZEPHYR_BASE}/samples/net/common/vlan.c)