Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

CMakeLists.txt 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. # Chip Selection
  11. #
  12. #| You _MUST_ set this to match the microcontroller you are trying to compile for
  13. #| You _MUST_ clean the build directory if you change this value
  14. #|
  15. set( CHIP
  16. # "at90usb162" # Teensy 1.0 (avr)
  17. # "atmega32u4" # Teensy 2.0 (avr)
  18. # "at90usb646" # Teensy++ 1.0 (avr)
  19. # "at90usb1286" # Teensy++ 2.0 (avr)
  20. # "mk20dx128" # Teensy 3.0 (arm)
  21. "mk20dx128vlf5" # McHCK mk20dx128vlf5
  22. # "mk20dx256" # Teensy 3.1 (arm)
  23. )
  24. ###
  25. # Compiler Intialization
  26. #
  27. set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/Lib/CMake )
  28. include( initialize )
  29. ###
  30. # Project Modules
  31. #
  32. #| Note: This is the only section you probably want to modify
  33. #| Each module is defined by it's own folder (e.g. Scan/Matrix represents the "Matrix" module)
  34. #| All of the modules must be specified, as they generate the sources list of files to compile
  35. #| Any modifications to this file will cause a complete rebuild of the project
  36. #| Please look at the {Scan,Macro,Output,Debug} for information on the modules and how to create new ones
  37. ##| Deals with acquiring the keypress information and turning it into a key index
  38. set( ScanModule "MD1" )
  39. ##| Provides the mapping functions for DefaultMap and handles any macro processing before sending to the OutputModule
  40. set( MacroModule "PartialMap" )
  41. ##| Sends the current list of usb key codes through USB HID
  42. set( OutputModule "pjrcUSB" )
  43. ##| Debugging source to use, each module has it's own set of defines that it sets
  44. set( DebugModule "full" )
  45. ###
  46. # Keymap Configuration (XXX - Not worky yet, currently ignored)
  47. #
  48. ##| If there are multiple DefaultMaps, it is defined here. If, the specified DefaultMap is not found, defaultMap.h is used.
  49. set( DefaultMap "kishsaver" )
  50. ##| PartialMap combined keymap layering. The first keymap has the "least" precedence.
  51. set( CombinedMap colemak capslock2ctrl )
  52. ##| ParitalMaps available on top of the CombinedMap. If there are input conflicts, the last PartialMap takes precedence.
  53. set( PartialMaps hhkbnav kbdctrl )
  54. ##| MacroSets define extra capabilities that are not provided by the Scan or Output modules. Last MacroSet takes precedence.
  55. set( MacroSets retype )
  56. ###
  57. # Source Defines (in addition to the selected Modules)
  58. #
  59. set( MAIN_SRCS
  60. main.c
  61. )
  62. ###
  63. # Project Description
  64. #
  65. #| Project
  66. project( kiibohd_controller )
  67. #| Target Name (output name)
  68. set( TARGET kiibohd )
  69. #| General Settings
  70. cmake_minimum_required( VERSION 2.8 )
  71. ###
  72. # Module Initialization / Compilation / Targets
  73. #
  74. include( Lib/CMake/modules.cmake )