# This application is compatible with PSoC 6 boards with 2M of internal FLASH
# https://github.com/Infineon/mtb-example-anycloud-ota-mqtt#supported-kits-make-variable-target
psoc6_check_bsp(
  CY8CKIT-062S2-43012
  CY8CPROTO-062-4343W
)

project(anycloud-ota-mqtt)

psoc6_load_application(
  NAME mtb-example-anycloud-ota-mqtt
  VERSION 3.0.0
)
psoc6_add_executable(
  NAME
    anycloud-ota-mqtt-app
  SOURCES
    ${APP_DIR}/source/main.c
    ${APP_DIR}/source/led_task.h
    ${APP_DIR}/source/led_task.c
    ${APP_DIR}/source/ota_app_config.h
    ${APP_DIR}/source/ota_task.h
    ${APP_DIR}/source/ota_task.c
  DEFINES
    APP_VERSION_MAJOR=1
    APP_VERSION_MINOR=0
    APP_VERSION_BUILD=0
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    wifi-connection-manager
    anycloud-ota-mqtt
)
