(resolved) simple cmake question (using subdirectories)
Posted: Wed Sep 15, 2021 5:16 pm
Hi all -
I'm in the process of porting an application to the ESP32. For convenience, I'd like to add a subdirectory to the main directory, to contain a bunch of code I'm using from an older project. But my build is failing at the configuration step.
I don't want to create a new component; I just want to use selected files from my "new_code" subdirectory. Can someone tell me the correct method for this? I tried adding a "add_subdirectory" command to my main CMakeLists.txt file, but that didn't work.
Thanks...
I'm in the process of porting an application to the ESP32. For convenience, I'd like to add a subdirectory to the main directory, to contain a bunch of code I'm using from an older project. But my build is failing at the configuration step.
I don't want to create a new component; I just want to use selected files from my "new_code" subdirectory. Can someone tell me the correct method for this? I tried adding a "add_subdirectory" command to my main CMakeLists.txt file, but that didn't work.
Thanks...