summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-15 15:31:55 +0700
committerhathach <[email protected]>2025-12-15 15:31:55 +0700
commitfa36515e6f1fdeebb84056534b8f878e1f454770 (patch)
tree9c266c7197bafe84a40413fc9c9fa6460f55e422 /examples/host
parent991fa7736dd8ae3f10abf51f0ac89f5e976851af (diff)
parentad5fe66f19e8fb633f175affcfa27b8376e40639 (diff)
Merge branch 'refs/heads/master' into enum_catch
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/CMakeLists.txt20
1 files changed, 13 insertions, 7 deletions
diff --git a/examples/host/CMakeLists.txt b/examples/host/CMakeLists.txt
index 2783dd84e..f8e0ce692 100644
--- a/examples/host/CMakeLists.txt
+++ b/examples/host/CMakeLists.txt
@@ -6,10 +6,16 @@ project(tinyusb_host_examples C CXX ASM)
family_initialize_project(tinyusb_host_examples ${CMAKE_CURRENT_LIST_DIR})
# family_add_subdirectory will filter what to actually add based on selected FAMILY
-family_add_subdirectory(bare_api)
-family_add_subdirectory(cdc_msc_hid)
-family_add_subdirectory(cdc_msc_hid_freertos)
-family_add_subdirectory(device_info)
-family_add_subdirectory(hid_controller)
-family_add_subdirectory(midi_rx)
-family_add_subdirectory(msc_file_explorer)
+set(EXAMPLE_LIST
+ bare_api
+ cdc_msc_hid
+ cdc_msc_hid_freertos
+ device_info
+ hid_controller
+ midi_rx
+ msc_file_explorer
+ )
+
+foreach (example ${EXAMPLE_LIST})
+ family_add_subdirectory(${example})
+endforeach ()