Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save primetoxinz/31e4359679710278e1eb69dc178c8a0b to your computer and use it in GitHub Desktop.
Save primetoxinz/31e4359679710278e1eb69dc178c8a0b to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 2.8.4)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
set(PROJECT_NAME untitled)
project(${PROJECT_NAME})
set(${CMAKE_PROJECT_NAME}_SKETCH untitled.ino)
#### Uncomment below additional settings as needed.
# set(${CMAKE_PROJECT_NAME}_BOARD mega)
# set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyACM0)
# set(mega.build.mcu atmega2560)
# set(mega.upload.protocol wiring)
# set(mega.upload.speed 115200)
generate_arduino_firmware(${CMAKE_PROJECT_NAME})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment