# This recipe is included by app/mtb101.cmake
# APP_DIR points to CypressAcademy_MTB101_Files root

# https://github.com/Infineon/CypressAcademy_MTB101_Files/tree/master/Projects/key_ch05d_ex07_allow_ping/COMPONENT_CUSTOM_DESIGN_MODUS
psoc6_check_bsp(
  CY8CKIT-062S2-43012
)

psoc6_add_executable(
  NAME
    key_ch05d_ex07_allow_ping
  SOURCES
    ${APP_DIR}/Projects/key_ch05d_ex07_allow_ping/main.c
    ${APP_DIR}/Projects/key_ch05d_ex07_allow_ping/lowpower_task.h
    ${APP_DIR}/Projects/key_ch05d_ex07_allow_ping/lowpower_task.c
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    lpa
  DESIGN_MODUS
    ${APP_DIR}/Projects/key_ch05d_ex07_allow_ping/COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_${BSP_NAME}/design.modus
)
