zephyr/samples/net/common/common.cmake
Jukka Rissanen 8d94245152 samples: net: echo-server: Refactor tunnel support
Move the common tunnel 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-04-02 05:29:57 +02:00

13 lines
437 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)
target_sources_ifdef(CONFIG_NET_L2_IPIP app PRIVATE
$ENV{ZEPHYR_BASE}/samples/net/common/tunnel.c)