mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-08-03 20:14:15 +02:00
refactor: Moves outbox to an internal library to improve testing
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
set(srcs "${CMAKE_CURRENT_LIST_DIR}/../mqtt_outbox.c")
|
||||
|
||||
add_library(mqtt_outbox_lib ${srcs})
|
||||
target_include_directories(mqtt_outbox_lib PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}/../include)
|
||||
idf_component_get_property(heap heap COMPONENT_LIB)
|
||||
idf_component_get_property(log log COMPONENT_LIB)
|
||||
target_link_libraries(mqtt_outbox_lib PRIVATE ${heap} ${log})
|
||||
add_library(idf::mqtt::outbox ALIAS mqtt_outbox_lib)
|
||||
Reference in New Issue
Block a user