Updating setup.cmake files to use Module hierarchy implicitly

- Added AddModule CMake function which simplifies specifying module requirements
This commit is contained in:
Jacob Alexander 2015-01-25 17:53:48 -08:00
parent c9b1769608
commit 1e9f55a0bf
16 changed files with 125 additions and 349 deletions

View file

@ -1,6 +1,6 @@
###| CMake Kiibohd Controller Debug Module |###
#
# Written by Jacob Alexander in 2011-2014 for the Kiibohd Controller
# Written by Jacob Alexander in 2011-2015 for the Kiibohd Controller
#
# Released into the Public Domain
#
@ -8,31 +8,18 @@
###
# Module C files
# Required Submodules
#
#| XXX Requires the ../ due to how the paths are constructed
set( DEBUG_SRCS
../cli/cli.c
../led/led.c
../print/print.c
)
###
# Module Specific Options
#
add_definitions(
-I${HEAD_DIR}/Debug/cli
-I${HEAD_DIR}/Debug/led
-I${HEAD_DIR}/Debug/print
)
AddModule ( Debug cli )
AddModule ( Debug led )
AddModule ( Debug print )
###
# Compiler Family Compatibility
#
set( DebugModuleCompatibility
set ( ModuleCompatibility
arm
avr
)