mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
13 lines
524 B
CMake
13 lines
524 B
CMake
|
cmake_minimum_required(VERSION 3.5)
|
||
|
|
||
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../../hw/bsp/family_support.cmake)
|
||
|
|
||
|
project(tinyusb_dual_examples)
|
||
|
family_initialize_project(tinyusb_dual_examples ${CMAKE_CURRENT_LIST_DIR})
|
||
|
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)
|
||
|
endif()
|