]> git.donarmstrong.com Git - kiibohd-controller.git/blob - CMakeLists.txt
Fixing RAM calculator and reduced actual SRAM usage
[kiibohd-controller.git] / CMakeLists.txt
1 ###| CMAKE Kiibohd Controller |###
2 #
3 # Jacob Alexander 2011-2014
4 # Due to this file's usefulness:
5 #
6 # Released into the Public Domain
7 #
8 ###
9
10
11
12 ###
13 # Chip Selection
14 #
15
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
18 #|
19 set( CHIP
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)
27 )
28
29
30
31 ###
32 # Compiler Intialization
33 #
34 set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/Lib/CMake )
35 include( initialize )
36
37
38
39 ###
40 # Project Modules
41 #
42
43 #| Note: This is the only section you probably want to modify
44 #| Each module is defined by it's own folder (e.g. Scan/Matrix represents the "Matrix" module)
45 #| All of the modules must be specified, as they generate the sources list of files to compile
46 #| Any modifications to this file will cause a complete rebuild of the project
47
48 #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones
49
50 ##| Deals with acquiring the keypress information and turning it into a key index
51 set(   ScanModule "MD1" )
52
53 ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule
54 set(  MacroModule "PartialMap" )
55
56 ##| Sends the current list of usb key codes through USB HID
57 set( OutputModule "pjrcUSB" )
58
59 ##| Debugging source to use, each module has it's own set of defines that it sets
60 set(  DebugModule "full" )
61
62
63
64 ###
65 # Keymap Configuration (XXX - Not worky yet, currently ignored)
66 #
67
68 ##| If there are multiple DefaultMaps, it is defined here. If, the specified DefaultMap is not found, defaultMap.h is used.
69 set(   DefaultMap "kishsaver" )
70
71 ##| PartialMap combined keymap layering. The first keymap has the "least" precedence.
72 set(  CombinedMap colemak capslock2ctrl )
73
74 ##| ParitalMaps available on top of the CombinedMap. If there are input conflicts, the last PartialMap takes precedence.
75 set(  PartialMaps hhkbnav kbdctrl )
76
77 ##| MacroSets define extra capabilities that are not provided by the Scan or Output modules. Last MacroSet takes precedence.
78 set(    MacroSets retype )
79
80
81
82 ###
83 # Source Defines (in addition to the selected Modules)
84 #
85 set( MAIN_SRCS
86         main.c
87 )
88
89
90
91 ###
92 # Project Description
93 #
94
95 #| Project
96 project( kiibohd_controller )
97
98 #| Target Name (output name)
99 set( TARGET kiibohd )
100
101 #| General Settings
102 cmake_minimum_required( VERSION 2.8 )
103
104
105
106 ###
107 # Module Initialization / Compilation / Targets
108 #
109 include( Lib/CMake/modules.cmake )
110