mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-12-24 02:29:55 +00:00
Add CMake toolchain for AVR compilation
This commit is contained in:
parent
baf0937589
commit
174bcdb370
15
toolchain-avr.cmake
Normal file
15
toolchain-avr.cmake
Normal file
@ -0,0 +1,15 @@
|
||||
# This will tell CMake that we are cross compiling
|
||||
set(CMAKE_SYSTEM_NAME Generic)
|
||||
set(CMAKE_SYSTEM_VERSION 1)
|
||||
set(CMAKE_SYSTEM_PROCESSOR avr)
|
||||
|
||||
# Make sure it knows what binaries to use
|
||||
set(CMAKE_AR avr-ar)
|
||||
set(CMAKE_ASM_COMPILER avr-as)
|
||||
set(CMAKE_C_COMPILER avr-gcc)
|
||||
set(CMAKE_CXX_COMPILER avr-g++)
|
||||
set(CMAKE_LINKER avr-ld)
|
||||
set(CMAKE_OBJCOPY avr-objcopy)
|
||||
set(CMAKE_RANLIB avr-ranlib)
|
||||
set(CMAKE_SIZE avr-size)
|
||||
set(CMAKE_STRIP avr-strip)
|
Loading…
Reference in New Issue
Block a user