CMakeLists.txt 661 B

1234567891011121314151617181920
  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_USB_CDC_ON_BOOT=1
  9. ARDUINO_USB_MODE=1
  10. )
  11. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  12. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
  13. idf_build_set_property(MINIMAL_BUILD ON)
  14. project(bat-remote)
  15. # Don't treat warning as errors
  16. idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)