make targets "loadable"

This commit is contained in:
Philippe G
2022-01-20 17:30:36 -08:00
parent 964b94fa1e
commit dbdd0739db
10 changed files with 72 additions and 30 deletions

View File

@@ -1,13 +1,4 @@
# This should be made a pure CMake component but as CMake is even
# more shitty under Windows, backslash in path screws it all
if(CONFIG_MUSE)
message("Compiling for MUSE")
set(src_dirs "muse")
else()
set(src_dirs ".")
endif()
idf_component_register( SRC_DIRS ${src_dirs}
idf_component_register( SRC_DIRS . muse
INCLUDE_DIRS .
PRIV_REQUIRES services
)