CMakeLists.txt 730 B

123456789101112131415161718
  1. # This is the project CMakeLists.txt file for the test subproject
  2. cmake_minimum_required(VERSION 3.16)
  3. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  4. project(gptimer_test)
  5. if(CONFIG_COMPILER_DUMP_RTL_FILES)
  6. add_custom_target(check_test_app_sections ALL
  7. COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
  8. --rtl-dir ${CMAKE_BINARY_DIR}/esp-idf/driver/
  9. --elf-file ${CMAKE_BINARY_DIR}/gptimer_test.elf
  10. find-refs
  11. --from-sections=.iram0.text
  12. --to-sections=.flash.text,.flash.rodata
  13. --exit-code
  14. DEPENDS ${elf}
  15. )
  16. endif()