mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 22:09:54 +00:00
[cmake] add ot-config (#5003)
This commit adds an interface target ot-config for collecting compile definitions.
This commit is contained in:
@@ -44,15 +44,13 @@ set(COMMON_INCLUDES
|
||||
target_include_directories(ot-cli-ftd PRIVATE ${COMMON_INCLUDES})
|
||||
target_include_directories(ot-cli-mtd PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_compile_definitions(ot-cli-ftd PRIVATE ${OT_PRIVATE_DEFINES})
|
||||
target_compile_definitions(ot-cli-mtd PRIVATE ${OT_PRIVATE_DEFINES})
|
||||
|
||||
target_link_libraries(ot-cli-ftd
|
||||
openthread-cli-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
mbedcrypto
|
||||
ot-config
|
||||
)
|
||||
|
||||
target_link_libraries(ot-cli-mtd
|
||||
@@ -61,6 +59,7 @@ target_link_libraries(ot-cli-mtd
|
||||
openthread-mtd
|
||||
${OT_PLATFORM_LIB}
|
||||
mbedcrypto
|
||||
ot-config
|
||||
)
|
||||
|
||||
install(TARGETS ot-cli-ftd ot-cli-mtd
|
||||
|
||||
Reference in New Issue
Block a user