Mercurial > louis > kiibohd-controller
view USB/pjrc/setup.cmake @ 71:8a344117d851
Adding module compatibility check to CMake build scripts.
- All modules have a default avr compatibilty right now (since that is what they were developed on)
- As modules get tested and added, arm support has to be turned on in the respective setup.cmake file
author | Jacob Alexander <triplehaata@gmail.com> |
---|---|
date | Wed, 30 Jan 2013 18:13:49 -0500 |
parents | 87658fa6091b |
children |
line wrap: on
line source
###| CMake Kiibohd Controller USB Module |### # # Written by Jacob Alexander in 2011-2013 for the Kiibohd Controller # # Released into the Public Domain # ### ### # Module C files # #| AVR Compiler if ( ${COMPILER_FAMILY} MATCHES "avr" ) set( USB_SRCS usb_com.c avr/usb_keyboard_debug.c ) #| ARM Compiler elseif ( ${COMPILER_FAMILY} MATCHES "arm" ) set( USB_SRCS usb_com.c arm/usb_desc.c arm/usb_dev.c arm/usb_keyboard.c arm/usb_mem.c arm/usb_serial.c ) endif ( ${COMPILER_FAMILY} MATCHES "avr" ) ### # Module Specific Options # ### # Compiler Family Compatibility # set( USBModuleCompatibility arm avr )