Any Clue??
Thanks!
The component is located in the components/oberon folder.
The main CMakeLists.tx is as follow:
Code: Select all
cmake_minimum_required(VERSION 3.5.2)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(trials)
Code: Select all
# External build process for oberon, runs in source dir and produces liboberon.a
idf_component_register()
ExternalProject_Add(oberon_build
PREFIX ${COMPONENT_DIR}
BINARY_DIR ${COMPONENT_DIR}
TMP_DIR ${COMPONENT_DIR}/build/tmp
STAMP_DIR ${COMPONENT_DIR}/build/stamp
SOURCE_DIR ${COMPONENT_DIR}/src
CONFIGURE_COMMAND ""
BUILD_COMMAND make liboberon.a
INSTALL_COMMAND ""
)
# Add liboberon.a to the build process
add_library(oberon STATIC IMPORTED GLOBAL)
add_dependencies(oberon oberon_build)
set_target_properties(oberon PROPERTIES IMPORTED_LOCATION
${COMPONENT_DIR}/liboberon.a)
set_directory_properties( PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"${COMPONENT_DIR}/liboberon.a")