CMakeLists.txt 740 B

1234567891011121314151617181920
  1. # this must be set *before* idf_component_register
  2. set(CMAKE_CXX_STANDARD 17)
  3. idf_component_register(
  4. SRC_DIRS .
  5. INCLUDE_DIRS . "cspot/include" "cspot/bell/include"
  6. PRIV_REQUIRES mbedtls mdns nvs_flash platform_config services esp_http_server tools codecs
  7. LDFRAGMENTS "linker.lf"
  8. )
  9. add_definitions(-DBELL_USE_MBEDTLS)
  10. add_definitions(-Wno-unused-variable -Wno-unused-const-variable -Wchar-subscripts -Wunused-label -Wmaybe-uninitialized -Wmisleading-indentation)
  11. set(BELL_DISABLE_CODECS ON)
  12. set(BELL_EXTERNAL_TREMOR "idf::codecs")
  13. set(BELL_EXTERNAL_CJSON "idf::json")
  14. add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cspot ${CMAKE_CURRENT_BINARY_DIR}/cspot)
  15. target_link_libraries(${COMPONENT_LIB} PRIVATE cspot ${EXTRA_REQ_LIBS})