view Output/uartOut/setup.cmake @ 272:5b66d1da5377

Updating setup.cmake files to use Module hierarchy implicitly - Added AddModule CMake function which simplifies specifying module requirements
author Jacob Alexander <haata@kiibohd.com>
date Sun, 25 Jan 2015 17:53:48 -0800
parents aeac00164f2e
children 66eccdd9ced5
line wrap: on
line source

###| CMake Kiibohd Controller UART Output Module |###
#
# Written by Jacob Alexander in 2014-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/uart_serial.c
	)

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

	set ( Module_SRCS
		output_com.c
		arm/uart_serial.c
	)

endif ()


###
# Compiler Family Compatibility
#
set( ModuleCompatibility
	arm
#	avr # TODO
)