mirror of
https://github.com/espressif/openthread.git
synced 2026-10-05 23:37:38 +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
|
||||
|
||||
@@ -37,15 +37,13 @@ add_executable(ot-ncp-mtd
|
||||
target_include_directories(ot-ncp-ftd PRIVATE ${COMMON_INCLUDES})
|
||||
target_include_directories(ot-ncp-mtd PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_compile_definitions(ot-ncp-ftd PRIVATE ${OT_PRIVATE_DEFINES})
|
||||
target_compile_definitions(ot-ncp-mtd PRIVATE ${OT_PRIVATE_DEFINES})
|
||||
|
||||
target_link_libraries(ot-ncp-ftd
|
||||
openthread-ncp-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
mbedcrypto
|
||||
ot-config
|
||||
)
|
||||
|
||||
target_link_libraries(ot-ncp-mtd
|
||||
@@ -54,6 +52,7 @@ target_link_libraries(ot-ncp-mtd
|
||||
openthread-mtd
|
||||
${OT_PLATFORM_LIB}
|
||||
mbedcrypto
|
||||
ot-config
|
||||
)
|
||||
|
||||
install(TARGETS ot-ncp-ftd ot-ncp-mtd DESTINATION bin)
|
||||
|
||||
@@ -32,13 +32,12 @@ add_executable(ot-rcp
|
||||
|
||||
target_include_directories(ot-rcp PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_compile_definitions(ot-rcp PRIVATE ${OT_PRIVATE_DEFINES})
|
||||
|
||||
target_link_libraries(ot-rcp
|
||||
openthread-rcp
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-radio
|
||||
${OT_PLATFORM_LIB}
|
||||
ot-config
|
||||
)
|
||||
|
||||
install(TARGETS ot-rcp DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user