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