mac-rom-simm-programmer/toolchain-avr.cmake
Doug Brown b8eaf1eacf Add initial CMake support
This sets up the ability to use CMake to build this project. A good
first step toward being able to actually make use of the HAL. I also
updated Eclipse's build process to match small changes I made while
getting this ready for CMake.
2021-07-17 12:32:29 -07:00

16 lines
436 B
CMake

# 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)