Kiibohd Controller
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

CMakeLists.txt 2.6KB

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