Updating setup.cmake files to use Module hierarchy implicitly
- Added AddModule CMake function which simplifies specifying module requirements
This commit is contained in:
parent
c9b1769608
commit
1e9f55a0bf
16 changed files with 125 additions and 349 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 by Jacob Alexander
|
||||
/* Copyright (C) 2014-2015 by Jacob Alexander
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
###| CMake Kiibohd Controller UART Output Module |###
|
||||
#
|
||||
# Written by Jacob Alexander in 2014 for the Kiibohd Controller
|
||||
# Written by Jacob Alexander in 2014-2015 for the Kiibohd Controller
|
||||
#
|
||||
# Released into the Public Domain
|
||||
#
|
||||
|
@ -11,11 +11,10 @@
|
|||
# Module C files
|
||||
#
|
||||
|
||||
|
||||
#| AVR Compiler
|
||||
if ( ${COMPILER_FAMILY} MATCHES "avr" )
|
||||
|
||||
set( OUTPUT_SRCS
|
||||
set ( Module_SRCS
|
||||
output_com.c
|
||||
avr/uart_serial.c
|
||||
)
|
||||
|
@ -23,7 +22,7 @@ if ( ${COMPILER_FAMILY} MATCHES "avr" )
|
|||
#| ARM Compiler
|
||||
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
|
||||
|
||||
set( OUTPUT_SRCS
|
||||
set ( Module_SRCS
|
||||
output_com.c
|
||||
arm/uart_serial.c
|
||||
)
|
||||
|
@ -31,14 +30,10 @@ elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
|
|||
endif ()
|
||||
|
||||
|
||||
###
|
||||
# Module Specific Options
|
||||
#
|
||||
|
||||
###
|
||||
# Compiler Family Compatibility
|
||||
#
|
||||
set( OutputModuleCompatibility
|
||||
set( ModuleCompatibility
|
||||
arm
|
||||
# avr # TODO
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue