CMakeLists.txt 948 B

1234567891011121314151617181920212223
  1. # This is the project CMakeLists.txt file for the test subproject
  2. cmake_minimum_required(VERSION 3.16)
  3. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
  4. set(COMPONENTS main)
  5. set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
  6. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  7. project(uart_test)
  8. if(CONFIG_COMPILER_DUMP_RTL_FILES)
  9. add_custom_target(check_test_app_sections ALL
  10. COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
  11. --rtl-dirs ${CMAKE_BINARY_DIR}/esp-idf/driver/,${CMAKE_BINARY_DIR}/esp-idf/hal/
  12. --elf-file ${CMAKE_BINARY_DIR}/uart_test.elf
  13. find-refs
  14. --from-sections=.iram0.text
  15. --to-sections=.flash.text,.flash.rodata
  16. --exit-code
  17. DEPENDS ${elf}
  18. )
  19. endif()