if(NOT BLESS IN_LIST COMPONENTS)
  return()
endif()

project(ble-battery-level-freertos)

psoc6_load_application(
  NAME mtb-example-psoc6-ble-battery-level-freertos
  VERSION 1.2.0
)
psoc6_add_executable(
  SOURCES
    ${APP_DIR}/source/main.c
    ${APP_DIR}/source/battery_task.h
    ${APP_DIR}/source/battery_task.c
    ${APP_DIR}/source/ble_task.h
    ${APP_DIR}/source/ble_task.c
    ${APP_DIR}/source/status_led_task.h
    ${APP_DIR}/source/status_led_task.c
    ${APP_DIR}/source/uart_debug.h
    ${APP_DIR}/source/uart_debug.c
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    bless-host-controller
    bless-common
  DESIGN_BT
    ${APP_DIR}/design.cybt
)
