mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
e2704749f1
commit
b73b38a01f
|
|
@ -13,8 +13,6 @@ target_sources(${TEST_NAME}
|
|||
|
||||
target_link_libraries(${TEST_NAME}
|
||||
PRIVATE
|
||||
mbed-headers
|
||||
mbed-stubs-headers
|
||||
mbed-stubs-platform
|
||||
gmock_main
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ target_sources(${TEST_NAME}
|
|||
|
||||
target_link_libraries(${TEST_NAME}
|
||||
PRIVATE
|
||||
mbed-headers
|
||||
mbed-stubs-platform
|
||||
gmock_main
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue