CMakeLists.txt 640 B

12345678910111213141516171819
  1. idf_build_get_property(target IDF_TARGET)
  2. if(CONFIG_SOC_EFUSE_KEY_PURPOSE_FIELD)
  3. set(dir "with_key_purposes")
  4. else()
  5. if(CONFIG_SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK)
  6. set(dir "one_key_block")
  7. else()
  8. set(dir "three_key_blocks")
  9. endif()
  10. endif()
  11. set(src_dirs "." "${dir}")
  12. idf_component_register(SRC_DIRS "${src_dirs}"
  13. PRIV_INCLUDE_DIRS "." "${dir}/include" "../private_include" "../${target}/private_include"
  14. PRIV_REQUIRES cmock test_utils efuse bootloader_support esp_timer
  15. )
  16. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")