CMakeLists.txt 801 B

123456789101112131415161718192021222324
  1. # The following lines of boilerplate have to be in your project's
  2. # CMakeLists in this exact order for cmake to work correctly
  3. cmake_minimum_required(VERSION 3.16)
  4. # Link Arduino as global component
  5. set(EXTRA_COMPONENT_DIRS "../esp32_global_components")
  6. # add compile definitions
  7. add_compile_definitions(
  8. ARDUINO_ESP32_GIT_VER=0xe518da106
  9. ARDUINO_ESP32_GIT_DESC=3.3.12
  10. ARDUINO_ESP32_RELEASE_3_3_12
  11. ARDUINO_ESP32_RELEASE="3_3_12"
  12. ARDUINO_USB_CDC_ON_BOOT=1
  13. ARDUINO_USB_MODE=1
  14. )
  15. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  16. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
  17. idf_build_set_property(MINIMAL_BUILD ON)
  18. project(bat-remote)
  19. # Don't treat warning as errors
  20. idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)