CMakeLists.txt 842 B

123456789101112131415161718192021
  1. set(srcs "test_app_main.c" "test_panic.c")
  2. if(CONFIG_TEST_MEMPROT)
  3. list(APPEND srcs "test_memprot.c")
  4. if(CONFIG_SOC_MEMPROT_SUPPORTED)
  5. if(CONFIG_IDF_TARGET_ARCH_XTENSA)
  6. list(APPEND srcs "panic_utils/memprot_panic_utils_xtensa.c")
  7. elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
  8. list(APPEND srcs "panic_utils/memprot_panic_utils_riscv.c")
  9. endif()
  10. endif()
  11. endif()
  12. idf_component_register(SRCS "${srcs}"
  13. INCLUDE_DIRS "include"
  14. REQUIRES spi_flash esp_psram esp_system esp_partition
  15. PRIV_REQUIRES esp_gdbstub)
  16. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-unused-variable"
  17. "-Wno-infinite-recursion"
  18. "-Wno-array-bounds")