CMakeLists.txt 718 B

12345678910111213141516171819202122232425
  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.22)
  4. set(EXTRA_COMPONENT_DIRS "../esp32_global_components")
  5. add_compile_definitions(
  6. ARDUINO_USB_MODE=1
  7. ARDUINO_USB_CDC_ON_BOOT=1
  8. )
  9. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  10. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
  11. idf_build_set_property(MINIMAL_BUILD ON)
  12. project(bat-sense)
  13. #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=all")
  14. #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=all")
  15. if(NOT BOOTLOADER_BUILD)
  16. idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)
  17. endif()