Mercurial > louis > kiibohd-controller
annotate CMakeLists.txt @ 412:e7a3be42ae1e
Debug code for interconnect cable debugging
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sat, 20 Feb 2016 13:27:49 -0800 |
parents | b4bb195dac76 |
children | b5746c43904e |
rev | line source |
---|---|
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
1 ###| CMAKE Kiibohd Controller |### |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
2 # |
331 | 3 # Jacob Alexander 2011-2015 |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
4 # Due to this file's usefulness: |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
5 # |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
6 # Released into the Public Domain |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
7 # |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
8 ### |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
9 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
10 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
11 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
12 ### |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
13 # Chip Selection |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
14 # |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
15 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
16 #| You _MUST_ set this to match the microcontroller you are trying to compile for |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
17 #| You _MUST_ clean the build directory if you change this value |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
18 #| |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
19 set( CHIP |
308 | 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) | |
267
4739cb8920b8
More preparation for mk20dx256vlh7
Jacob Alexander <haata@kiibohd.com>
parents:
264
diff
changeset
|
25 "mk20dx128vlf5" # McHCK mk20dx128vlf5 |
400
b4bb195dac76
Adding comment for the Teensy 3.2
Jacob Alexander <jacob.alexander@virtualinstruments.com>
parents:
359
diff
changeset
|
26 # "mk20dx256" # Teensy 3.1,3.2 (arm) |
308 | 27 # "mk20dx256vlh7" # Kiibohd-dfu mk20dx256vlh7 |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
28 CACHE STRING "Microcontroller Chip" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
29 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
30 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
31 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
32 ### |
264
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
33 # Compiler Selection |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
34 # |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
35 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
36 #| *** EXPERIMENTAL *** |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
37 #| Stick with gcc unless you know what you're doing |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
38 #| Currently only arm is supported with clang |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
39 set( COMPILER |
308 | 40 "gcc" # arm-none-eabi-gcc / avr-gcc - Default |
41 # "clang" # arm-none-eabi | |
264
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
42 CACHE STRING "Compiler Type" ) |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
43 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
44 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
45 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
46 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
47 # Compiler Intialization |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
48 # |
192
6ac92b8614c0
Fixing RAM calculator and reduced actual SRAM usage
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
49 set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/Lib/CMake ) |
6ac92b8614c0
Fixing RAM calculator and reduced actual SRAM usage
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
50 include( initialize ) |
56
5359c8357d19
Updating CMakeLists.txt file for CMake + WinAVR on Windows
Jacob Alexander <triplehaata@gmail.com>
parents:
45
diff
changeset
|
51 |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
52 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
53 |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
54 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
55 # Project Modules |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
56 # |
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
57 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
58 #| Note: This is the only section you probably want to modify |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
59 #| Each module is defined by it's own folder (e.g. Scan/Matrix represents the "Matrix" module) |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
60 #| All of the modules must be specified, as they generate the sources list of files to compile |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
61 #| Any modifications to this file will cause a complete rebuild of the project |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
62 |
165
0d992d26114f
Preparing from initial AVR USB NKRO support.
Jacob Alexander <haata@kiibohd.com>
parents:
147
diff
changeset
|
63 #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
64 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
65 ##| Deals with acquiring the keypress information and turning it into a key index |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
66 set( ScanModule "MD1" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
67 CACHE STRING "Scan Module" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
68 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
69 ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
70 set( MacroModule "PartialMap" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
71 CACHE STRING "Macro Module" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
72 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
73 ##| Sends the current list of usb key codes through USB HID |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
74 set( OutputModule "pjrcUSB" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
75 CACHE STRING "Output Module" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
76 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
77 ##| Debugging source to use, each module has it's own set of defines that it sets |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
78 set( DebugModule "full" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
79 CACHE STRING "Debug Module" ) |
68
2c0c2fbd76c9
Updating Debug Modules to new abstracted hierarchy
Jacob Alexander <triplehaata@gmail.com>
parents:
66
diff
changeset
|
80 |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
81 |
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
82 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
83 ### |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
84 # Keymap Configuration (do not include the .kll extension) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
85 # |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
86 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
87 #| Do not include the .kll extension |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
88 #| * BaseMap maps the native keyboard scan codes to USB Codes so the layout is compatible with all other layouts |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
89 #| * DefaultMap allows the default keymap to be modified from the BaseMap |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
90 #| * PartialMaps is a set of dynamically set layers (there is no limit, but too many may use up too much RAM...) |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
91 #| BaseMap generally does not need to be changed from "defaultMap" |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
92 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
93 #| Syntax: |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
94 #| myMap |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
95 #| * defines a single .kll layout file, double-quotes are needed to distinguish between layers |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
96 #| "myMap specialLayer" |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
97 #| * defines myMap to be the main layout, then replace specialLayers on top of it |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
98 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
99 #| - Only for PartialMaps - |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
100 #| "myMap specialLayer" "myMap colemak" dvorak |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
101 #| * As before, but also generates a second layer at index 2 and third at index 3 |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
102 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
103 #| NOTE: Remember to add key(s) to enable each Partial Layer |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
104 #| NOTE2: Layers are always based up the BaseMap (which should be an ANSI-like mapping) |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
105 #| NOTE3: Compiler looks in kll/layouts and the build directory for layout files (precedence on build directory) |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
106 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
107 ##| Set the base keyboard .kll map, defaults to "defaultMap" if not found |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
108 ##| Looks in Scan/<Module Name> for the available BaseMaps |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
109 set( BaseMap "defaultMap" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
110 CACHE STRING "KLL BaseMap/Scancode Keymapping" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
111 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
112 ##| Layer additonal .kll maps on the BaseMap, layers are in order from 1st to nth |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
113 ##| Can be set to "" |
253
e79f2b9c39cf
Fixing layer latch capability.
Jacob Alexander <haata@kiibohd.com>
parents:
238
diff
changeset
|
114 set( DefaultMap "md1Overlay stdFuncMap" |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
115 CACHE STRING "KLL DefaultMap" ) |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
116 |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
117 ##| ParitalMaps available on top of the BaseMap. See above for syntax on specifying multiple layers vs. layering |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
118 ##| Can be set to "" |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
119 set( PartialMaps "hhkbpro2" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
120 CACHE STRING "KLL PartialMaps/Layer Definitions" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
121 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
122 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
123 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
124 ### |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
125 # Source Defines (in addition to the selected Modules) |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
126 # |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
127 set( MAIN_SRCS |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
128 main.c |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
129 ) |
146
9a8eb9fbf177
Let CMake do more autoconfiguration.
Jacob Alexander <haata@kiibohd.com>
parents:
145
diff
changeset
|
130 |
34
5425548818d3
Adding support for the Micro Switch 8304 Hall Effect Keyboard
Jacob Alexander <triplehaata@gmail.com>
parents:
32
diff
changeset
|
131 |
5425548818d3
Adding support for the Micro Switch 8304 Hall Effect Keyboard
Jacob Alexander <triplehaata@gmail.com>
parents:
32
diff
changeset
|
132 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
133 ### |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
134 # Project Description |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
135 # |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
136 |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
137 #| Project |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
138 project( kiibohd_controller ) |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
139 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
140 #| Target Name (output name) |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
141 set( TARGET kiibohd ) |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
142 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
143 #| General Settings |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
144 cmake_minimum_required( VERSION 2.8 ) |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
145 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
146 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
147 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
148 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
149 # Module Initialization / Compilation / Targets |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
150 # |
212
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
151 include( modules ) |
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
152 include( kll ) # Generate kll layouts if necessary |
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
153 include( build ) |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
154 |