I am using the CMakeLists.txt that came with cpp_utils
# Edit following two lines to set component requirements (see docs)
set(COMPONENT_REQUIRES
"console"
"fatfs"
"json"
"mdns"
"nvs_flash"
)
set(COMPONENT_PRIV_REQUIRES )
file(GLOB COMPONENT_SRCS
LIST_DIRECTORIES false
"*.h"
"*.cpp"
"*.c"
"*.S"
)
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
Top Level CMakeLists.txt
cmake_minimum_required(VERSION 3.16.0)
list(APPEND EXTRA_COMPONENT_DIRS "components/esp-aws-iot")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(connect-esp32
LANGUAGES C CXX)
hahaha is it? Seems simple to me, but having such problems right now moving to cmake.
I am just trying to use the cpp_utils library, esp_aws_iot, and my customLIbrary and having to go into the library and edit the include files to find a relative path. That seems strange…
I was given advice and thought I read somewhere not to include cpp_utils since the components folder was already added?
uploading the full project isn’t an option. What else can i Provide to give you a better understanding of my layout?