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.

15 lines
513 B

6 years ago
  1. cmake_minimum_required(VERSION 2.8.4)
  2. set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
  3. set(PROJECT_NAME light_control)
  4. project(${PROJECT_NAME})
  5. set(${CMAKE_PROJECT_NAME}_SKETCH light_control.ino)
  6. #### Uncomment below additional settings as needed.
  7. # set(${CMAKE_PROJECT_NAME}_BOARD mega)
  8. # set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyACM0)
  9. # set(mega.build.mcu atmega2560)
  10. # set(mega.upload.protocol wiring)
  11. # set(mega.upload.speed 115200)
  12. generate_arduino_firmware(${CMAKE_PROJECT_NAME})