您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CMakeLists.txt 617B

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