2022-05-27 04:10:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-10-07 23:19:23 -04:00
|
|
|
|
2021-12-22 01:25:59 -05:00
|
|
|
if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3") OR (IDF_TARGET STREQUAL "esp32s3"))
|
2020-10-07 23:19:23 -04:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
project(test_memprot)
|
|
|
|
|
2021-12-22 01:25:59 -05:00
|
|
|
target_link_libraries(${project_elf} PRIVATE
|
|
|
|
"-Wl,--wrap=esp_panic_handler"
|
|
|
|
"-Wl,--wrap=esp_panic_handler_reconfigure_wdts"
|
2022-07-21 07:39:21 -04:00
|
|
|
"-Wl,--wrap=esp_cpu_stall")
|
2020-10-07 23:19:23 -04:00
|
|
|
|
|
|
|
endif()
|