CMakeLists.txt 571 B

1234567891011121314151617181920212223
  1. set(COMPONENT_SRCS "unity/src/unity.c"
  2. "unity_port_esp32.c")
  3. set(COMPONENT_ADD_INCLUDEDIRS "include"
  4. "unity/src")
  5. if(CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER)
  6. list(APPEND COMPONENT_SRCS "unity_runner.c")
  7. endif()
  8. if(CONFIG_UNITY_ENABLE_FIXTURE)
  9. list(APPEND COMPONENT_SRCS "unity/extras/fixture/src/unity_fixture.c")
  10. endif()
  11. register_component()
  12. target_compile_definitions(${COMPONENT_TARGET} PUBLIC
  13. -DUNITY_INCLUDE_CONFIG_H
  14. )
  15. if(GCC_NOT_5_2_0)
  16. component_compile_options(-Wno-unused-const-variable)
  17. endif()