Skip to content

Commit ce1f054

Browse files
committed
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.
1 parent db8852c commit ce1f054

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connectivity/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_library(mbed-wifi INTERFACE)
2727
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
2828
# Add these subdirectories for tests
2929
add_subdirectory(cellular)
30+
add_subdirectory(drivers)
3031
add_subdirectory(FEATURE_BLE)
3132
add_subdirectory(libraries)
3233
add_subdirectory(lorawan)

0 commit comments

Comments
 (0)