view Output/pjrcUSB/setup.cmake @ 104:e84738d174bc

Moving USB to Output in preparation for additional Output types. * Initial cli code
author Jacob Alexander <haata@kiibohd.com>
date Sun, 19 Jan 2014 16:40:36 -0800
parents
children 0c5d1fe99302
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( OUTPUT_SRCS
		output_com.c
		avr/usb_keyboard_debug.c
	)

#| ARM Compiler
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )

	set( OUTPUT_SRCS
		output_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( OutputModuleCompatibility
	arm
	avr
)