2011-09-29 06:25:51 +00:00
|
|
|
###| CMake Kiibohd Controller USB Module |###
|
|
|
|
#
|
2013-01-26 20:05:28 +00:00
|
|
|
# Written by Jacob Alexander in 2011-2013 for the Kiibohd Controller
|
2011-09-29 06:25:51 +00:00
|
|
|
#
|
|
|
|
# Released into the Public Domain
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Module C files
|
|
|
|
#
|
|
|
|
|
2013-01-26 20:05:28 +00:00
|
|
|
|
|
|
|
#| AVR Compiler
|
|
|
|
if ( ${COMPILER_FAMILY} MATCHES "avr" )
|
|
|
|
|
2014-01-20 00:40:36 +00:00
|
|
|
set( OUTPUT_SRCS
|
|
|
|
output_com.c
|
2014-03-31 08:07:48 +00:00
|
|
|
avr/usb_keyboard_serial.c
|
2013-01-26 20:05:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#| ARM Compiler
|
|
|
|
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
|
|
|
|
|
2014-01-20 00:40:36 +00:00
|
|
|
set( OUTPUT_SRCS
|
|
|
|
output_com.c
|
2013-01-26 20:05:28 +00:00
|
|
|
arm/usb_desc.c
|
|
|
|
arm/usb_dev.c
|
|
|
|
arm/usb_keyboard.c
|
|
|
|
arm/usb_mem.c
|
2013-01-27 03:30:36 +00:00
|
|
|
arm/usb_serial.c
|
2013-01-26 20:05:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
endif ( ${COMPILER_FAMILY} MATCHES "avr" )
|
2011-09-29 06:25:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Module Specific Options
|
|
|
|
#
|
|
|
|
|
2013-01-30 23:13:49 +00:00
|
|
|
###
|
|
|
|
# Compiler Family Compatibility
|
|
|
|
#
|
2014-01-20 00:40:36 +00:00
|
|
|
set( OutputModuleCompatibility
|
2013-01-30 23:13:49 +00:00
|
|
|
arm
|
|
|
|
avr
|
|
|
|
)
|
|
|
|
|