mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
68b46f6199
commit
ef0e3f99e4
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue