Dev env : Linux Ubuntu 18.04
My project is structured like this :
Code: Untitled.cmake Select all
My_project :
subproject 1
main
main.c
file1.c
CMakeList.txt
CMakeList.txt
subproject 2
main
main.c
file 2.c
CMakeList.txt
CMakeList.txt
extra_component
Component1
file3.c
filee3.h
CMakeList.txt
Component2
file4.c
file4.h
CmakeList.txtI used this scheme because my project need to build two different .bin to dowload two different board.
The Subproject CmainList is as follow :
Code: Untitled.cmake Select all
cmake_minimum_required(VERSION 3.5)
set(PROJECT_VER "1.0.2")
set(EXTRA_COMPONENT_DIRS "${PROJECT_DIR}/../extra_components")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp-mad-server) Code: Untitled.cmake Select all
idf_component_register(SRCS "main.c" "file1.c"
REQUIRES Component1 Component2)CMake Error at /home/adesandr/esp-idf/tools/cmake/build.cmake:185 (message):
Failed to resolve component ‘Component1'.
I can’t understand that is wrong in my setup.
Thank you in advance for your help.
Regards.
