[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:
nikita-s-wrk
2021-10-19 17:28:02 -07:00
committed by GitHub
parent 71e4df9820
commit f4e1526a49
7 changed files with 36 additions and 13 deletions
+6 -2
View File
@@ -33,11 +33,15 @@ add_executable(ot-ncp-ftd
target_include_directories(ot-ncp-ftd PRIVATE ${COMMON_INCLUDES})
if(NOT DEFINED OT_PLATFORM_LIB_FTD)
set(OT_PLATFORM_LIB_FTD ${OT_PLATFORM_LIB})
endif()
target_link_libraries(ot-ncp-ftd PRIVATE
openthread-ncp-ftd
${OT_PLATFORM_LIB}
${OT_PLATFORM_LIB_FTD}
openthread-ftd
${OT_PLATFORM_LIB}
${OT_PLATFORM_LIB_FTD}
openthread-ncp-ftd
${OT_MBEDTLS}
ot-config