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.

CMakeLists.txt 692B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 2.8.4)
  2. set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
  3. set(PROJECT_NAME heater)
  4. project(${PROJECT_NAME})
  5. set(CMAKE_CXX_STANDARD 14)
  6. set(${CMAKE_PROJECT_NAME}_BOARD nano328)
  7. set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyUSB3)
  8. #nano
  9. #set(${CMAKE_PROJECT_NAME}_BOARD nano328)
  10. #set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyUSB0)
  11. #mega
  12. #set(${CMAKE_PROJECT_NAME}_BOARD mega2560)
  13. #set(${CMAKE_PROJECT_NAME}_PORT /dev/ttyACM0)
  14. # /usr/share/arduino/hardware/arduino/boards.txt
  15. enable_language(ASM)
  16. set(${CMAKE_PROJECT_NAME}_ALL_SRCS main.ino JC_Button.cpp)
  17. set(${CMAKE_PROJECT_NAME}_SKETCH main.ino)
  18. generate_arduino_firmware(${CMAKE_PROJECT_NAME})