| 12345678910111213141516171819202122232425 |
- # The following lines of boilerplate have to be in your project's
- # CMakeLists in this exact order for cmake to work correctly
- cmake_minimum_required(VERSION 3.22)
- set(EXTRA_COMPONENT_DIRS "../esp32_global_components")
- add_compile_definitions(
- ARDUINO_USB_MODE=1
- ARDUINO_USB_CDC_ON_BOOT=1
- )
- include($ENV{IDF_PATH}/tools/cmake/project.cmake)
- # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
- idf_build_set_property(MINIMAL_BUILD ON)
- project(bat-sense)
- #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=all")
- #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=all")
- if(NOT BOOTLOADER_BUILD)
- idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)
- endif()
|