CMakeLists.txt 552 B

1234567891011121314151617
  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. add_compile_definitions(
  5. ARDUINO_USB_MODE=1
  6. ARDUINO_USB_CDC_ON_BOOT=1
  7. )
  8. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
  9. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error")
  10. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  11. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
  12. idf_build_set_property(MINIMAL_BUILD ON)
  13. project(bat-sense)