set(srcs "main.c")

if(CONFIG_BT_BLUEDROID_ENABLED)
    list(APPEND srcs "bluedroid/peripheral.c")
else()
    list(APPEND srcs "nimble/peripheral.c")
endif()

if(CONFIG_EXAMPLE_UNICAST)
    list(APPEND srcs "cap_acceptor_unicast.c")
endif()

if(CONFIG_EXAMPLE_BROADCAST)
    list(APPEND srcs "cap_acceptor_broadcast.c")
    if(CONFIG_BT_BLUEDROID_ENABLED)
        list(APPEND srcs "bluedroid/scan.c")
    else()
        list(APPEND srcs "nimble/scan.c")
    endif()
endif()

idf_component_register(SRCS ${srcs}
                       INCLUDE_DIRS "."
                       REQUIRES bt nvs_flash)
