This component is aiming to provide some useful CMake utilities outside of ESP-IDF.
Add dependency of this component in your component or project's idf_component.yml.
dependencies:
espressif/cmake_utilities: "0.*"
Include the CMake file you needed in your component's CMakeLists.txt after idf_component_register, or your project's CMakeLists.txt
// Note: should remove .cmake postfix when using include(), otherwise the requested file will not found
// Note: should place this line after `idf_component_register` function
// Include the top CMake file which will include other CMake files
include(cmake_utilities)
// Or, only include the one you needed.
include(package_manager)
Then you can use the corresponding CMake function which is provided by the CMake file.
__pycache__
idf.py gen_single_bin
to generate merged bin fileidf.py flash_single_bin
to flash generated merged binColor in diagnostics
to control the GCC color output-
, just like esp-xxxCopy to Clipboard
idf.py add-dependency "espressif/cmake_utilities^0.4.8"
Copy to Clipboard
Copy to Clipboard