[cmake] add ot-config (#5003)

This commit adds an interface target ot-config for collecting compile definitions.
This commit is contained in:
Yakun Xu
2020-05-26 10:24:22 -07:00
committed by GitHub
parent dd1be49d5f
commit 9a3c2dc3b3
25 changed files with 119 additions and 237 deletions
+1 -4
View File
@@ -34,10 +34,6 @@ add_library(openthread-platform-utils OBJECT
soft_source_match_table.c
)
target_compile_definitions(openthread-platform-utils PRIVATE
${OT_PRIVATE_DEFINES}
)
target_include_directories(openthread-platform-utils PRIVATE
${OT_PUBLIC_INCLUDES}
${OT_PRIVATE_INCLUDES}
@@ -50,3 +46,4 @@ target_include_directories(openthread-platform-utils PRIVATE
# Provide a static library implementation of platform-utils for non-cmake platforms
add_library(openthread-platform-utils-static $<TARGET_OBJECTS:openthread-platform-utils>)
target_link_libraries(openthread-platform-utils-static PUBLIC openthread-platform-utils)
target_link_libraries(openthread-platform-utils PRIVATE ot-config)