summaryrefslogtreecommitdiff
path: root/examples/dual
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-04 09:27:29 +0700
committerhathach <[email protected]>2025-12-04 09:27:29 +0700
commit9f291dac260f82d5a8f1b11251703e79da12996a (patch)
tree0344ebf0bca0a50962ca01b51793460b902ad34b /examples/dual
parent06f1597c0e55a862bce2eac0b2058cb6f6cea54b (diff)
parentf68e354729c9485918966d2818fe652c033e4a93 (diff)
Merge branch 'refs/heads/master' into dwc2_cfg
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 ()