changeset 238:bc1553655509

Making all the configurable CMake variables externally settable - Use CMake -D arguments to set variables (so you don't have to edit the CMakeLists.txt file)
author Jacob Alexander <haata@kiibohd.com>
date Thu, 02 Oct 2014 19:30:15 -0700
parents 01b686cc94e8
children 2a4c99da1276
files CMakeLists.txt
diffstat 1 files changed, 16 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Thu Oct 02 19:29:56 2014 -0700
+++ b/CMakeLists.txt	Thu Oct 02 19:30:15 2014 -0700
@@ -24,7 +24,7 @@
 #	"mk20dx128"        # Teensy   3.0 (arm)
 	"mk20dx128vlf5"    # McHCK    mk20dx128vlf5
 #	"mk20dx256"        # Teensy   3.1 (arm)
-)
+	CACHE STRING "Microcontroller Chip" )
 
 
 
@@ -48,16 +48,20 @@
 #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones
 
 ##| Deals with acquiring the keypress information and turning it into a key index
-set(   ScanModule "MD1" )
+set(   ScanModule "MD1"
+	CACHE STRING "Scan Module" )
 
 ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule
-set(  MacroModule "PartialMap" )
+set(  MacroModule "PartialMap"
+	CACHE STRING "Macro Module" )
 
 ##| Sends the current list of usb key codes through USB HID
-set( OutputModule "pjrcUSB" )
+set( OutputModule "pjrcUSB"
+	CACHE STRING "Output Module" )
 
 ##| Debugging source to use, each module has it's own set of defines that it sets
-set(  DebugModule "full" )
+set(  DebugModule "full"
+	CACHE STRING "Debug Module" )
 
 
 
@@ -88,16 +92,19 @@
 ##| Set the base keyboard .kll map, defaults to "defaultMap" if not found
 ##| Looks in Scan/<Module Name> for the available BaseMaps
 ##| TODO Support layering in basemap
-set(     BaseMap "defaultMap" )
+set(     BaseMap "defaultMap"
+	CACHE STRING "KLL BaseMap/Scancode Keymapping" )
 
 ##| Layer additonal .kll maps on the BaseMap, layers are in order from 1st to nth
 ##| Can be set to ""
-set(  DefaultMap "stdFuncMap" )
-#set(  DefaultMap "colemak stdFuncMap" )
+set(  DefaultMap "stdFuncMap"
+	CACHE STRING "KLL DefaultMap" )
+#set(  DefaultMap "colemak stdFuncMap" CACHE )
 
 ##| ParitalMaps available on top of the BaseMap. See above for syntax on specifying multiple layers vs. layering
 ##| Can be set to ""
-set( PartialMaps "hhkbpro2" )
+set( PartialMaps "hhkbpro2"
+	CACHE STRING "KLL PartialMaps/Layer Definitions" )