cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
if(${IDF_TARGET} STREQUAL esp8266)
    project(zh_espnow_switch_esp8266)
elseif(${IDF_TARGET} STREQUAL esp32)
    project(zh_espnow_switch_esp32)
elseif(${IDF_TARGET} STREQUAL esp32c2)
    project(zh_espnow_switch_esp32c2)
elseif(${IDF_TARGET} STREQUAL esp32c3)
    project(zh_espnow_switch_esp32c3)
elseif(${IDF_TARGET} STREQUAL esp32c6)
    project(zh_espnow_switch_esp32c6)
elseif(${IDF_TARGET} STREQUAL esp32s2)
    project(zh_espnow_switch_esp32s2)
elseif(${IDF_TARGET} STREQUAL esp32s3)
    project(zh_espnow_switch_esp32s3)
endif()