bt: Fix unit tests build with CMake

This commit is contained in:
Anton Maklakov 2018-11-19 19:04:42 +08:00
parent 9dde91ce2b
commit 87e8757569
1 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
if(CONFIG_BT_ENABLED)
if(CONFIG_BT_ENABLED OR CMAKE_BUILD_EARLY_EXPANSION)
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_REQUIRES unity nvs_flash bt)
register_component()
endif()
set(COMPONENT_REQUIRES unity nvs_flash bt)
register_component()