CMake: unit-tests: Make platform stub only depend on headers it uses

Previously the platform stub library depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're actually using.
pull/14773/head
Robert Walton 2021-06-11 16:03:00 +01:00
parent e2704749f1
commit b73b38a01f
3 changed files with 4 additions and 5 deletions

View File

@ -13,8 +13,6 @@ target_sources(${TEST_NAME}
target_link_libraries(${TEST_NAME}
PRIVATE
mbed-headers
mbed-stubs-headers
mbed-stubs-platform
gmock_main
)

View File

@ -12,7 +12,6 @@ target_sources(${TEST_NAME}
target_link_libraries(${TEST_NAME}
PRIVATE
mbed-headers
mbed-stubs-platform
gmock_main
)

View File

@ -31,7 +31,9 @@ target_link_options(mbed-stubs-platform
--coverage
)
target_link_libraries(mbed-stubs-platform
PRIVATE
mbed-headers
PUBLIC
mbed-headers-base
mbed-headers-hal
mbed-headers-platform
mbed-stubs-headers
)