Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
controller/Output/pjrcUSB/setup.cmake
Jacob Alexander 1e9f55a0bf Updating setup.cmake files to use Module hierarchy implicitly
- Added AddModule CMake function which simplifies specifying module requirements
2015-01-25 17:55:28 -08:00

45 lines
617 B
CMake

###| CMake Kiibohd Controller USB Module |###
#
# Written by Jacob Alexander in 2011-2015 for the Kiibohd Controller
#
# Released into the Public Domain
#
###
###
# Module C files
#
#| AVR Compiler
if ( ${COMPILER_FAMILY} MATCHES "avr" )
set ( Module_SRCS
output_com.c
avr/usb_keyboard_serial.c
)
#| ARM Compiler
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
set ( Module_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" )
###
# Compiler Family Compatibility
#
set( ModuleCompatibility
arm
avr
)