mirror of
https://github.com/espressif/openthread.git
synced 2026-10-16 20:57:41 +00:00
[cmake] add ability to pick custom lib for MTD/FTD (#7041)
This commit enables different libraries option for ftd, mtd and rcp builds.
This commit is contained in:
@@ -33,11 +33,15 @@ add_executable(ot-cli-radio
|
||||
|
||||
target_include_directories(ot-cli-radio PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
if(NOT DEFINED OT_PLATFORM_LIB_RCP)
|
||||
set(OT_PLATFORM_LIB_RCP ${OT_PLATFORM_LIB})
|
||||
endif()
|
||||
|
||||
target_link_libraries(ot-cli-radio PRIVATE
|
||||
openthread-cli-radio
|
||||
${OT_PLATFORM_LIB}
|
||||
${OT_PLATFORM_LIB_RCP}
|
||||
openthread-radio-cli
|
||||
${OT_PLATFORM_LIB}
|
||||
${OT_PLATFORM_LIB_RCP}
|
||||
openthread-cli-radio
|
||||
${OT_MBEDTLS}
|
||||
ot-config
|
||||
|
||||
Reference in New Issue
Block a user