# This recipe is included by app/community.cmake
# APP_DIR points to Community-Code-Examples root

psoc6_check_bsp(
  CY8CKIT-062S2-43012
)

psoc6_add_executable(
  NAME
    mtb-demo-psoc6-hmi
  SOURCES
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/main.c
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/configs/wifi_config.h
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/http-client/http_client_task.h
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/http-client/http_client_task.c
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display/WindowDLG.c
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display/icons.h
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display/icons.c
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display/tft_task.h
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display/tft_task.c
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/touch/capsense_task.h
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/touch/capsense_task.c
  INCLUDE_DIRS
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/configs
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/http-client
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/tft-display
    ${APP_DIR}/psoc6_hmi_demo/mtb-demo-psoc6-hmi/source/touch
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    capsense
    emwin-osts
    display-tft-st7789v-emwin
    wifi-connection-manager
    http-client
    json-utilities
)
