2022-05-27 04:10:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2021-02-16 10:47:10 -05:00
|
|
|
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
2022-09-05 09:46:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
set(COMPONENTS linux mqtt main)
|
|
|
|
|
|
|
|
list(APPEND EXTRA_COMPONENT_DIRS
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/esp_hw_support/"
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/freertos/"
|
2022-06-07 07:10:38 -04:00
|
|
|
"$ENV{IDF_PATH}/tools/mocks/esp_timer/"
|
2022-09-05 09:46:10 -04:00
|
|
|
"$ENV{IDF_PATH}/tools/mocks/esp_event/"
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/lwip/"
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/esp-tls/"
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/http_parser/"
|
|
|
|
"$ENV{IDF_PATH}/tools/mocks/tcp_transport/"
|
2022-06-07 07:10:38 -04:00
|
|
|
)
|
2021-02-16 10:47:10 -05:00
|
|
|
project(host_mqtt_client_test)
|
2022-09-05 09:46:10 -04:00
|
|
|
|
|
|
|
idf_component_get_property(mqtt mqtt COMPONENT_LIB)
|
|
|
|
idf_component_get_property(linux linux COMPONENT_LIB)
|
|
|
|
target_link_libraries(${mqtt} PUBLIC ${linux})
|