Skip to content

Commit

Permalink
CMake: Move netsocket stub headers to the netsocket doubles dir
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rajkan01 committed Jul 7, 2021
1 parent 68b46f6 commit ef0e3f9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
5 changes: 5 additions & 0 deletions connectivity/netsocket/tests/UNITTESTS/doubles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit ef0e3f9

Please sign in to comment.