espressif / esp-apple-homekit-adk

This is a port for Apple's Open Source HomeKit ADK
617 stars 64 forks source link

Make it easier to add component to project #22

Open slompf18 opened 3 years ago

slompf18 commented 3 years ago

Adding the component as submodule in components directory of a project fails, until you add

set(EXTRA_COMPONENT_DIRS ${CMAKE_CURRENT_LIST_DIR}/components/esp-apple-homekit-adk)

to your CMakeLists.txt. I guess its because the CMakeLists.txt of the component is not in the root directory as stated here.

Is this an intended behavior? Otherwise I could fix it.

shahpiyushv commented 3 years ago

@slompf18 , there's no specific reason why CMakeLists.txt isn't in the root directory here. It's just that some of our other recent projects had multiple components in them and so we did not have the CMakeLists.txt for them in the root folder. The same logic got applied here, even though here it is a single component :)

slompf18 commented 3 years ago

Should we correct it? It's a fast fix and would make life a little bit easier for others using the component. Actually I have fixed it on a branch.