CMake: connectivity: Add drivers subdirectory for tests

Greentea tests run on microcontrollers, so any required drivers need
to be available and built.

Note: Even though unit tests do not require drivers, for ease of
maintenance there's no need to exclude those drivers when building unit
tests because a driver only gets enabled when the Mbed target matches.
pull/15096/head
Lingkai Dong 2021-09-13 12:01:36 +01:00
parent db8852c5d8
commit ce1f054bd3
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ add_library(mbed-wifi INTERFACE)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
# Add these subdirectories for tests
add_subdirectory(cellular)
add_subdirectory(drivers)
add_subdirectory(FEATURE_BLE)
add_subdirectory(libraries)
add_subdirectory(lorawan)