# cmake_minimum_required(VERSION 3.17)
# TODO make tinyusb as library that depends on 'tusb_config' interface that exposes the tusb_config.h file

target_sources(${PROJECT} PUBLIC
  ${CMAKE_CURRENT_LIST_DIR}/tusb.c
  ${CMAKE_CURRENT_LIST_DIR}/common/tusb_fifo.c
  ${CMAKE_CURRENT_LIST_DIR}/device/usbd.c
  ${CMAKE_CURRENT_LIST_DIR}/device/usbd_control.c
  ${CMAKE_CURRENT_LIST_DIR}/class/audio/audio_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/cdc/cdc_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/dfu/dfu_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/dfu/dfu_rt_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/hid/hid_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/midi/midi_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/msc/msc_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/net/ecm_rndis_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/net/ncm_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/usbtmc/usbtmc_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/vendor/vendor_device.c
  ${CMAKE_CURRENT_LIST_DIR}/class/video/video_device.c
  )

target_include_directories(${PROJECT} PUBLIC
  ${CMAKE_CURRENT_LIST_DIR}
  )
