2018-10-25 00:52:32 -04:00
|
|
|
set(COMPONENT_SRCS "unity/src/unity.c"
|
|
|
|
"unity_port_esp32.c")
|
|
|
|
|
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include"
|
|
|
|
"unity/src")
|
|
|
|
|
2018-11-29 04:06:21 -05:00
|
|
|
if(CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL)
|
|
|
|
list(APPEND COMPONENT_PRIV_INCLUDEDIRS "include/priv")
|
|
|
|
endif()
|
|
|
|
|
2018-10-25 00:52:32 -04:00
|
|
|
if(CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER)
|
|
|
|
list(APPEND COMPONENT_SRCS "unity_runner.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_UNITY_ENABLE_FIXTURE)
|
|
|
|
list(APPEND COMPONENT_SRCS "unity/extras/fixture/src/unity_fixture.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
register_component()
|
|
|
|
|
2018-11-11 02:36:10 -05:00
|
|
|
target_compile_definitions(${COMPONENT_TARGET} PUBLIC
|
2018-10-25 00:52:32 -04:00
|
|
|
-DUNITY_INCLUDE_CONFIG_H
|
|
|
|
)
|
|
|
|
|
|
|
|
if(GCC_NOT_5_2_0)
|
|
|
|
component_compile_options(-Wno-unused-const-variable)
|
|
|
|
endif()
|