RC-5 for ATmega8
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.
 
 

18 lines
390 B

  1. cmake_minimum_required(VERSION 3.2.2)
  2. project(RC-5)
  3. include_directories("/usr/avr/include")
  4. include_directories("./include")
  5. set(CMAKE_C_COMPILER /usr/bin/avr-gcc)
  6. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmcu=atmega8")
  7. set(CMAKE_CONFIGURATION_TYPES "build" CACHE STRING "" FORCE)
  8. set(SOURCE_FILES
  9. src/main.c include/main.h
  10. src/rc5.c include/rc5.h
  11. )
  12. add_executable(RC-5 ${SOURCE_FILES})