CMake: Move netsocket stub headers to the netsocket doubles dir

Previously all the netsocket stubs headers under mbed-stubs-headers,
so this PR move all netsocket stubs headers under
netsocket/tests/UNITTESTS/double directory and update CMake to include
stubs headers into mbed-stubs-netsocket library to make netsocket stubs
to be self-contained.
pull/14873/head
Rajkumar Kanagaraj 2021-07-05 06:37:21 -07:00
parent 68b46f6199
commit ef0e3f99e4
7 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,7 @@ target_link_libraries(${TEST_NAME}
mbed-headers-cellular
mbed-stubs
mbed-stubs-cellular
mbed-stubs-netsocket
mbed-stubs-headers
gmock_main
)

View File

@ -10,6 +10,11 @@ target_include_directories(mbed-headers-netsocket
add_library(mbed-stubs-netsocket)
target_include_directories(mbed-stubs-netsocket
PUBLIC
.
)
target_sources(mbed-stubs-netsocket
PRIVATE
CellularInterface_stub.cpp

View File

@ -27,6 +27,7 @@ target_link_libraries(${TEST_NAME}
mbed-headers-cellular
mbed-stubs
mbed-stubs-cellular
mbed-stubs-netsocket
mbed-stubs-headers
gmock_main
)