I downloaded GSL library to a separate folder `gsl` within `components` folder in my esp-idf project. And I added there the following `CMakeLists.txt`:
Code: Select all
idf_component_register()
ExternalProject_Add(gsl_build
PREFIX ${COMPONENT_DIR}
SOURCE_DIR ${COMPONENT_DIR}
CONFIGURE_COMMAND ${COMPONENT_DIR}/configure
BUILD_IN_SOURCE 1
BUILD_COMMAND make CC=${CMAKE_C_COMPILER}
INSTALL_COMMAND ""
)
I checked that the file `configure` exists in `components/gsl` folder.
How can I configure the library before building?