1cmake_minimum_required(VERSION 3.5)
2
3if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3"))
4    include($ENV{IDF_PATH}/tools/cmake/project.cmake)
5    project(test_memprot)
6
7    target_link_libraries(${project_elf} "-Wl,--wrap=esp_panic_handler")
8
9endif()
10