1 ###| CMAKE Kiibohd Controller |###
3 # Jacob Alexander 2011-2014
4 # Due to this file's usefulness:
6 # Released into the Public Domain
16 #| You _MUST_ set this to match the microcontroller you are trying to compile for
17 #| You _MUST_ clean the build directory if you change this value
20 # "at90usb162" # Teensy 1.0 (avr)
21 # "atmega32u4" # Teensy 2.0 (avr)
22 # "at90usb646" # Teensy++ 1.0 (avr)
23 # "at90usb1286" # Teensy++ 2.0 (avr)
24 # "mk20dx128" # Teensy 3.0 (arm)
25 "mk20dx128vlf5" # McHCK mk20dx128vlf5
26 # "mk20dx256" # Teensy 3.1 (arm)
32 # Compiler Intialization
34 include( Lib/CMake/initialize.cmake )
42 #| Note: This is the only section you probably want to modify
43 #| Each module is defined by it's own folder (e.g. Scan/Matrix represents the "Matrix" module)
44 #| All of the modules must be specified, as they generate the sources list of files to compile
45 #| Any modifications to this file will cause a complete rebuild of the project
47 #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones
49 ##| Deals with acquiring the keypress information and turning it into a key index
50 set( ScanModule "MDPure" )
52 ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule
53 set( MacroModule "PartialMap" )
55 ##| Sends the current list of usb key codes through USB HID
56 set( OutputModule "pjrcUSB" )
58 ##| Debugging source to use, each module has it's own set of defines that it sets
59 set( DebugModule "full" )
64 # Keymap Configuration (XXX - Not worky yet, currently ignored)
67 ##| If there are multiple DefaultMaps, it is defined here. If, the specified DefaultMap is not found, defaultMap.h is used.
68 set( DefaultMap "kishsaver" )
70 ##| PartialMap combined keymap layering. The first keymap has the "least" precedence.
71 set( CombinedMap colemak capslock2ctrl )
73 ##| ParitalMaps available on top of the CombinedMap. If there are input conflicts, the last PartialMap takes precedence.
74 set( PartialMaps hhkbnav kbdctrl )
76 ##| MacroSets define extra capabilities that are not provided by the Scan or Output modules. Last MacroSet takes precedence.
77 set( MacroSets retype )
82 # Source Defines (in addition to the selected Modules)
95 project( kiibohd_controller )
97 #| Target Name (output name)
101 cmake_minimum_required( VERSION 2.8 )
106 # Module Initialization / Compilation / Targets
108 include( Lib/CMake/modules.cmake )