Files
esp-modbus/test_apps/console_helper_test/main/CMakeLists.txt
T

11 lines
455 B
CMake

set(PROJECT_NAME "modbus_console_helper_test")
idf_component_register(SRCS "mb_console_app.c"
REQUIRES mb_console_helper console)
# Workaround to avoid static analysis false positives for some components.
if(CONFIG_FMB_COMPILER_STATIC_ANALYZER_ENABLE AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(${COMPONENT_LIB} PRIVATE "-fanalyzer")
message(STATUS "Static analyzer build for ${PROJECT_NAME}.")
endif()