mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 22:57:47 +00:00
[cmake] fix RCP cmake build to not include FTD/MTD source files (#4624)
This commit is contained in:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user