summaryrefslogtreecommitdiff
path: root/examples/dual
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-12-04 09:03:37 +0700
committerGitHub <[email protected]>2025-12-04 09:03:37 +0700
commitf68e354729c9485918966d2818fe652c033e4a93 (patch)
tree0b9332d09e888ae0313e52b23268addea6b45e71 /examples/dual
parent7ee288bc223db393d68c7bdb09bf7c05ffd2eb03 (diff)
parent1b6f2b90a45e172a2eb45b3dea2fa2d11382c2b0 (diff)
Merge pull request #3384 from hathach/pr-size-diff
Size metrics
Diffstat (limited to 'examples/dual')
-rw-r--r--examples/dual/CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/dual/CMakeLists.txt b/examples/dual/CMakeLists.txt
index c5e3ffce4..4978f1fab 100644
--- a/examples/dual/CMakeLists.txt
+++ b/examples/dual/CMakeLists.txt
@@ -9,6 +9,12 @@ if (FAMILY STREQUAL "rp2040" AND NOT TARGET tinyusb_pico_pio_usb)
message("Skipping dual host/device mode examples as Pico-PIO-USB is not available")
else ()
# family_add_subdirectory will filter what to actually add based on selected FAMILY
- family_add_subdirectory(host_hid_to_device_cdc)
- family_add_subdirectory(host_info_to_device_cdc)
+ set(EXAMPLE_LIST
+ host_hid_to_device_cdc
+ host_info_to_device_cdc
+ )
+
+ foreach (example ${EXAMPLE_LIST})
+ family_add_subdirectory(${example})
+ endforeach ()
endif ()