get_filename_component(DIRNAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${DIRNAME})

set(TARGET_NAME ${PROJECT_NAME}_c0.elf)

add_executable(${TARGET_NAME}
    ${TINYUSB_SRCS}
    src/main.c
    src/usb_descriptors.c
    src/msc_disk.c
)

target_include_directories(${TARGET_NAME}
    PRIVATE
        ${TINYUSB_INCLDS}
        src/)

init_ld_flags(${TARGET_NAME})
init_post_commands(${TARGET_NAME})

target_compile_definitions(${TARGET_NAME}
    PRIVATE
        ${TINYUSB_STD_COMPILE_DEFS}
)
