CMakeLists.txt 873 B

123456789101112131415161718192021
  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. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  6. project(ledc_test)
  7. if(CONFIG_COMPILER_DUMP_RTL_FILES)
  8. add_custom_target(check_test_app_sections ALL
  9. COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
  10. --rtl-dirs ${CMAKE_BINARY_DIR}/esp-idf/driver/,${CMAKE_BINARY_DIR}/esp-idf/hal/
  11. --elf-file ${CMAKE_BINARY_DIR}/ledc_test.elf
  12. find-refs
  13. --from-sections=.iram0.text
  14. --to-sections=.flash.text,.flash.rodata
  15. --exit-code
  16. DEPENDS ${elf}
  17. )
  18. endif()