Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

setup.cmake 639B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ###| CMake Kiibohd Controller USB Module |###
  2. #
  3. # Written by Jacob Alexander in 2011-2013 for the Kiibohd Controller
  4. #
  5. # Released into the Public Domain
  6. #
  7. ###
  8. ###
  9. # Module C files
  10. #
  11. #| AVR Compiler
  12. if ( ${COMPILER_FAMILY} MATCHES "avr" )
  13. set( USB_SRCS
  14. usb_com.c
  15. avr/usb_keyboard_debug.c
  16. )
  17. #| ARM Compiler
  18. elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
  19. set( USB_SRCS
  20. usb_com.c
  21. arm/usb_desc.c
  22. arm/usb_dev.c
  23. arm/usb_keyboard.c
  24. arm/usb_mem.c
  25. arm/usb_serial.c
  26. )
  27. endif ( ${COMPILER_FAMILY} MATCHES "avr" )
  28. ###
  29. # Module Specific Options
  30. #
  31. ###
  32. # Compiler Family Compatibility
  33. #
  34. set( USBModuleCompatibility
  35. arm
  36. avr
  37. )