Files
board-mate/esp32-thread/open-thread/managed_components/espressif__iperf/CMakeLists.txt
2025-12-24 16:07:10 +01:00

19 lines
497 B
CMake

include($ENV{IDF_PATH}/tools/cmake/version.cmake)
set(srcs "iperf.c")
set(priv_requires freertos)
# version >= v4.4
if(${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR} VERSION_GREATER 4.3)
list(APPEND priv_requires esp_timer)
endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "include"
PRIV_REQUIRES ${priv_requires})
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0)
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
endif()