Mercurial > louis > kiibohd-controller
annotate CMakeLists.txt @ 437:da28cecc0b5b
Merge pull request #114 from kiibohd/revert-113-ghost_fix
Revert "Fixed ghosting matrix check (did send bad keys on release), now using…"
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Fri, 13 May 2016 14:38:46 -0700 |
parents | b5746c43904e |
children |
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 # |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
3 # Jacob Alexander 2011-2016 |
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 |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
28 CACHE STRING "Microcontroller Chip" |
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
29 ) |
147
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 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
33 ### |
264
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
34 # Compiler Selection |
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 |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
37 #| gcc has been tested much more (and will likely give smaller binaries) |
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
38 #| clang does work though |
264
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
39 #| 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
|
40 set( COMPILER |
308 | 41 "gcc" # arm-none-eabi-gcc / avr-gcc - Default |
42 # "clang" # arm-none-eabi | |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
43 CACHE STRING "Compiler Type" |
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
44 ) |
264
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 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
47 |
945ce4472602
Adding experimental clang compiler support for arm-none-eabi
Jacob Alexander <haata@kiibohd.com>
parents:
253
diff
changeset
|
48 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
49 # Compiler Intialization |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
50 # |
192
6ac92b8614c0
Fixing RAM calculator and reduced actual SRAM usage
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
51 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
|
52 include( initialize ) |
56
5359c8357d19
Updating CMakeLists.txt file for CMake + WinAVR on Windows
Jacob Alexander <triplehaata@gmail.com>
parents:
45
diff
changeset
|
53 |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
54 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
55 |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
56 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
57 # Project Modules |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
58 # |
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
59 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
60 #| 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
|
61 #| 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
|
62 #| 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
|
63 #| 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
|
64 |
165
0d992d26114f
Preparing from initial AVR USB NKRO support.
Jacob Alexander <haata@kiibohd.com>
parents:
147
diff
changeset
|
65 #| 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
|
66 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
67 ##| 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
|
68 set( ScanModule "MD1" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
69 CACHE STRING "Scan Module" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
70 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
71 ##| 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
|
72 set( MacroModule "PartialMap" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
73 CACHE STRING "Macro Module" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
74 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
75 ##| 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
|
76 set( OutputModule "pjrcUSB" |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
77 CACHE STRING "Output Module" |
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
78 ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
79 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
80 ##| 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
|
81 set( DebugModule "full" |
428
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
82 CACHE STRING "Debug Module" |
b5746c43904e
Fixing clang compilation and supporting clang-tidy
Jacob Alexander <haata@kiibohd.com>
parents:
400
diff
changeset
|
83 ) |
68
2c0c2fbd76c9
Updating Debug Modules to new abstracted hierarchy
Jacob Alexander <triplehaata@gmail.com>
parents:
66
diff
changeset
|
84 |
66
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
85 |
0fdf103960c6
Updating CMake build system to prepare for Teensy 3 integration.
Jacob Alexander <triplehaata@gmail.com>
parents:
56
diff
changeset
|
86 |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
87 ### |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
88 # Keymap Configuration (do not include the .kll extension) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
89 # |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
90 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
91 #| Do not include the .kll extension |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
92 #| * 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
|
93 #| * 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
|
94 #| * 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
|
95 #| 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
|
96 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
97 #| Syntax: |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
98 #| myMap |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
99 #| * 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
|
100 #| "myMap specialLayer" |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
101 #| * 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
|
102 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
103 #| - Only for PartialMaps - |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
104 #| "myMap specialLayer" "myMap colemak" dvorak |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
105 #| * 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
|
106 #| |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
107 #| 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
|
108 #| 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
|
109 #| 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
|
110 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
111 ##| 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
|
112 ##| 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
|
113 set( BaseMap "defaultMap" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
114 CACHE STRING "KLL BaseMap/Scancode Keymapping" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
115 |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
116 ##| 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
|
117 ##| Can be set to "" |
253
e79f2b9c39cf
Fixing layer latch capability.
Jacob Alexander <haata@kiibohd.com>
parents:
238
diff
changeset
|
118 set( DefaultMap "md1Overlay stdFuncMap" |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
119 CACHE STRING "KLL DefaultMap" ) |
205
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
120 |
a2e9bb170eef
Adding CMake build support for the KLL compiler
Jacob Alexander <haata@kiibohd.com>
parents:
192
diff
changeset
|
121 ##| 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
|
122 ##| Can be set to "" |
238
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
123 set( PartialMaps "hhkbpro2" |
bc1553655509
Making all the configurable CMake variables externally settable
Jacob Alexander <haata@kiibohd.com>
parents:
233
diff
changeset
|
124 CACHE STRING "KLL PartialMaps/Layer Definitions" ) |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
125 |
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 |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
128 ### |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
129 # Source Defines (in addition to the selected Modules) |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
130 # |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
131 set( MAIN_SRCS |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
132 main.c |
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
133 ) |
146
9a8eb9fbf177
Let CMake do more autoconfiguration.
Jacob Alexander <haata@kiibohd.com>
parents:
145
diff
changeset
|
134 |
34
5425548818d3
Adding support for the Micro Switch 8304 Hall Effect Keyboard
Jacob Alexander <triplehaata@gmail.com>
parents:
32
diff
changeset
|
135 |
5425548818d3
Adding support for the Micro Switch 8304 Hall Effect Keyboard
Jacob Alexander <triplehaata@gmail.com>
parents:
32
diff
changeset
|
136 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
137 ### |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
138 # Project Description |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
139 # |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
140 |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
141 #| Project |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
142 project( kiibohd_controller ) |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
143 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
144 #| Target Name (output name) |
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
145 set( TARGET kiibohd ) |
19
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 #| General Settings |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
148 cmake_minimum_required( VERSION 2.8 ) |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
149 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
150 |
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
151 |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
152 ### |
147
95da03b43860
Reorganizing CMake build system.
Jacob Alexander <haata@kiibohd.com>
parents:
146
diff
changeset
|
153 # Module Initialization / Compilation / Targets |
20
0bd94a5cac31
Finished major changes on the CMakeLists.txt.
Jacob Alexander <triplehaata@gmail.com>
parents:
19
diff
changeset
|
154 # |
212
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
155 include( modules ) |
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
156 include( kll ) # Generate kll layouts if necessary |
2794931a4d30
DPH controller now working with macros/layers
Jacob Alexander <haata@kiibohd.com>
parents:
205
diff
changeset
|
157 include( build ) |
19
31f559255b1b
Finally! A CMake build script
Jacob Alexander <triplehaata@gmail.com>
parents:
diff
changeset
|
158 |