1 ###| CMAKE Kiibohd Controller Initialization |###
3 # Written by Jacob Alexander in 2011-2014 for the Kiibohd Controller
5 # Released into the Public Domain
10 #| Windows / Cygwin Compatibility options
11 set( CMAKE_LEGACY_CYGWIN_WIN32 0 )
12 set( CMAKE_USE_RELATIVE_PATHS 1 )
21 if ( "${CHIP}" MATCHES "^at90usb.*$" OR "${CHIP}" MATCHES "^atmega.*$" )
22 set( COMPILER_FAMILY "avr" )
25 elseif ( "${CHIP}" MATCHES "^mk20dx.*$" )
26 set( COMPILER_FAMILY "arm" )
30 message( FATAL_ERROR "CHIP: ${CHIP} - Unknown chip, could not choose compiler..." )
33 #| Results of Compiler Lookup
34 message( STATUS "Compiler Family:" )
35 message( "${COMPILER_FAMILY}" )
37 #| Load the compiler family specific configurations
38 include( Lib/CMake/${COMPILER_FAMILY}.cmake )
40 #| Binutils not set by CMake
41 set( CMAKE_SIZE "${_CMAKE_TOOLCHAIN_PREFIX}size" )