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.

142 lines
9.7 KiB

10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
  1. # !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
  2. # https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
  3. #
  4. # If you need to override existing CMake configuration or add extra,
  5. # please create `CMakeListsUser.txt` in the root of project.
  6. # The `CMakeListsUser.txt` will not be overwritten by PlatformIO.
  7. set(CMAKE_CONFIGURATION_TYPES "Upload_UART;Upload_ISP;fuses_bootloader;" CACHE STRING "Build Types reflect PlatformIO Environments" FORCE)
  8. SET(CMAKE_C_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-atmelavr/bin/avr-gcc")
  9. SET(CMAKE_CXX_COMPILER "$ENV{HOME}/.platformio/packages/toolchain-atmelavr/bin/avr-g++")
  10. SET(CMAKE_CXX_FLAGS "-fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega644p")
  11. SET(CMAKE_C_FLAGS "-std=gnu11 -fno-fat-lto-objects -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega644p")
  12. SET(CMAKE_C_STANDARD 11)
  13. set(CMAKE_CXX_STANDARD 11)
  14. if (CMAKE_BUILD_TYPE MATCHES "Upload_UART")
  15. add_definitions(-D'PLATFORMIO=50100')
  16. add_definitions(-D'ARDUINO_AVR_ATmega644')
  17. add_definitions(-D'F_CPU=16000000L')
  18. add_definitions(-D'ARDUINO_ARCH_AVR')
  19. add_definitions(-D'ARDUINO=10808')
  20. add_definitions(-D'__AVR_ATmega644P__')
  21. include_directories("${CMAKE_CURRENT_LIST_DIR}/include")
  22. include_directories("${CMAKE_CURRENT_LIST_DIR}/src")
  23. include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/UIPArtnet")
  24. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/UIPEthernet")
  25. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/UIPEthernet/utility")
  26. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/ArduinoDMX/src")
  27. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/ArduinoRS485/src")
  28. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/RF24")
  29. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/RF24/utility")
  30. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI/src")
  31. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/cores/MightyCore")
  32. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/variants/bobuino")
  33. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/AVR_examples/src")
  34. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/EEPROM/src")
  35. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Optiboot_flasher/src")
  36. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SD/src")
  37. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI1/src")
  38. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Servo/src")
  39. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SoftwareSerial/src")
  40. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Timer/src")
  41. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire/src")
  42. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire1/src")
  43. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include-fixed")
  44. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include")
  45. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/avr/include")
  46. FILE(GLOB_RECURSE EXTRA_LIB_SOURCES
  47. ${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_UART/*.*
  48. )
  49. endif()
  50. if (CMAKE_BUILD_TYPE MATCHES "Upload_ISP")
  51. add_definitions(-D'PLATFORMIO=50100')
  52. add_definitions(-D'ARDUINO_AVR_ATmega644')
  53. add_definitions(-D'F_CPU=16000000L')
  54. add_definitions(-D'ARDUINO_ARCH_AVR')
  55. add_definitions(-D'ARDUINO=10808')
  56. add_definitions(-D'__AVR_ATmega644P__')
  57. include_directories("${CMAKE_CURRENT_LIST_DIR}/include")
  58. include_directories("${CMAKE_CURRENT_LIST_DIR}/src")
  59. include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/UIPArtnet")
  60. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/UIPEthernet")
  61. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/UIPEthernet/utility")
  62. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/ArduinoDMX/src")
  63. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/ArduinoRS485/src")
  64. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/RF24")
  65. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/RF24/utility")
  66. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI/src")
  67. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/cores/MightyCore")
  68. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/variants/bobuino")
  69. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/AVR_examples/src")
  70. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/EEPROM/src")
  71. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Optiboot_flasher/src")
  72. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SD/src")
  73. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI1/src")
  74. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Servo/src")
  75. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SoftwareSerial/src")
  76. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Timer/src")
  77. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire/src")
  78. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire1/src")
  79. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include-fixed")
  80. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include")
  81. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/avr/include")
  82. FILE(GLOB_RECURSE EXTRA_LIB_SOURCES
  83. ${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/Upload_ISP/*.*
  84. )
  85. endif()
  86. if (CMAKE_BUILD_TYPE MATCHES "fuses_bootloader")
  87. add_definitions(-D'PLATFORMIO=50100')
  88. add_definitions(-D'ARDUINO_AVR_ATmega644')
  89. add_definitions(-D'F_CPU=16000000L')
  90. add_definitions(-D'ARDUINO_ARCH_AVR')
  91. add_definitions(-D'ARDUINO=10808')
  92. add_definitions(-D'__AVR_ATmega644P__')
  93. include_directories("${CMAKE_CURRENT_LIST_DIR}/include")
  94. include_directories("${CMAKE_CURRENT_LIST_DIR}/src")
  95. include_directories("${CMAKE_CURRENT_LIST_DIR}/lib/UIPArtnet")
  96. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/UIPEthernet")
  97. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/UIPEthernet/utility")
  98. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/ArduinoDMX/src")
  99. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/ArduinoRS485/src")
  100. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/RF24")
  101. include_directories("${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/RF24/utility")
  102. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI/src")
  103. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/cores/MightyCore")
  104. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/variants/bobuino")
  105. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/AVR_examples/src")
  106. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/EEPROM/src")
  107. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Optiboot_flasher/src")
  108. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SD/src")
  109. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SPI1/src")
  110. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Servo/src")
  111. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/SoftwareSerial/src")
  112. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Timer/src")
  113. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire/src")
  114. include_directories("$ENV{HOME}/.platformio/packages/framework-arduino-avr-mightycore/libraries/Wire1/src")
  115. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include-fixed")
  116. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include")
  117. include_directories("$ENV{HOME}/.platformio/packages/toolchain-atmelavr/avr/include")
  118. FILE(GLOB_RECURSE EXTRA_LIB_SOURCES
  119. ${CMAKE_CURRENT_LIST_DIR}/.pio/libdeps/fuses_bootloader/*.*
  120. )
  121. endif()
  122. FILE(GLOB_RECURSE SRC_LIST
  123. ${CMAKE_CURRENT_LIST_DIR}/src/*.*
  124. ${CMAKE_CURRENT_LIST_DIR}/lib/*.*
  125. )
  126. list(APPEND SRC_LIST ${EXTRA_LIB_SOURCES})