[cmake] fix RCP cmake build to not include FTD/MTD source files (#4624)

This commit is contained in:
Abtin Keshavarzian
2020-03-02 22:00:31 -08:00
committed by GitHub
parent 7f25092938
commit fc6ca182d3
+10 -2
View File
@@ -77,10 +77,10 @@ set(COMMON_INCLUDES
set(COMMON_SOURCES
changed_props_set.cpp
ncp_base.cpp
ncp_base_dispatcher.cpp
ncp_base_ftd.cpp
ncp_base_mtd.cpp
ncp_base_radio.cpp
ncp_base_dispatcher.cpp
ncp_spi.cpp
ncp_uart.cpp
)
@@ -91,7 +91,15 @@ target_include_directories(openthread-rcp PUBLIC ${OT_PUBLIC_INCLUDES} PRIVATE $
target_sources(openthread-ncp-ftd PRIVATE ${COMMON_SOURCES})
target_sources(openthread-ncp-mtd PRIVATE ${COMMON_SOURCES})
target_sources(openthread-rcp PRIVATE ${COMMON_SOURCES})
target_sources(openthread-rcp PRIVATE
changed_props_set.cpp
ncp_base.cpp
ncp_base_dispatcher.cpp
ncp_base_radio.cpp
ncp_spi.cpp
ncp_uart.cpp
)
target_link_libraries(openthread-ncp-ftd
PUBLIC