mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[cmake] make ot-config private (#5014)
This commit is contained in:
@@ -44,7 +44,7 @@ set(COMMON_INCLUDES
|
||||
target_include_directories(ot-cli-ftd PRIVATE ${COMMON_INCLUDES})
|
||||
target_include_directories(ot-cli-mtd PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_link_libraries(ot-cli-ftd
|
||||
target_link_libraries(ot-cli-ftd PRIVATE
|
||||
openthread-cli-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-ftd
|
||||
@@ -53,7 +53,7 @@ target_link_libraries(ot-cli-ftd
|
||||
ot-config
|
||||
)
|
||||
|
||||
target_link_libraries(ot-cli-mtd
|
||||
target_link_libraries(ot-cli-mtd PRIVATE
|
||||
openthread-cli-mtd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-mtd
|
||||
|
||||
@@ -37,7 +37,7 @@ add_executable(ot-ncp-mtd
|
||||
target_include_directories(ot-ncp-ftd PRIVATE ${COMMON_INCLUDES})
|
||||
target_include_directories(ot-ncp-mtd PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_link_libraries(ot-ncp-ftd
|
||||
target_link_libraries(ot-ncp-ftd PRIVATE
|
||||
openthread-ncp-ftd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-ftd
|
||||
@@ -46,7 +46,7 @@ target_link_libraries(ot-ncp-ftd
|
||||
ot-config
|
||||
)
|
||||
|
||||
target_link_libraries(ot-ncp-mtd
|
||||
target_link_libraries(ot-ncp-mtd PRIVATE
|
||||
openthread-ncp-mtd
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-mtd
|
||||
|
||||
@@ -32,7 +32,7 @@ add_executable(ot-rcp
|
||||
|
||||
target_include_directories(ot-rcp PRIVATE ${COMMON_INCLUDES})
|
||||
|
||||
target_link_libraries(ot-rcp
|
||||
target_link_libraries(ot-rcp PRIVATE
|
||||
openthread-rcp
|
||||
${OT_PLATFORM_LIB}
|
||||
openthread-radio
|
||||
|
||||
@@ -82,11 +82,7 @@ set_target_properties(
|
||||
CXX_STANDARD 11
|
||||
)
|
||||
|
||||
target_link_libraries(openthread-posix PUBLIC
|
||||
openthread-platform
|
||||
ot-config
|
||||
util
|
||||
)
|
||||
target_link_libraries(openthread-posix PUBLIC openthread-platform PRIVATE ot-config util)
|
||||
|
||||
target_compile_definitions(openthread-posix
|
||||
PUBLIC
|
||||
|
||||
Reference in New Issue
Block a user