<commit_before># Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-usb INTERFACE)

target_include_directories(mbed-usb
    INTERFACE
        include
        include/usb
)

target_sources(mbed-usb
    INTERFACE
        source/AsyncOp.cpp
        source/ByteBuffer.cpp
        source/EndpointResolver.cpp
        source/LinkedListBase.cpp
        source/OperationListBase.cpp
        source/PolledQueue.cpp
        source/TaskBase.cpp
        source/USBAudio.cpp
        source/USBCDC.cpp
        source/USBCDC_ECM.cpp
        source/USBDevice.cpp
        source/USBHID.cpp
        source/USBKeyboard.cpp
        source/USBMIDI.cpp
        source/USBMSD.cpp
        source/USBMouse.cpp
        source/USBMouseKeyboard.cpp
        source/USBSerial.cpp
)

target_link_libraries(mbed-usb INTERFACE mbed-storage)
<commit_msg>Add internal subfolder to USBDriver's CMakelists<commit_after># Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-usb INTERFACE)

target_include_directories(mbed-usb
    INTERFACE
        include
        include/usb
        include/usb/internal
)

target_sources(mbed-usb
    INTERFACE
        source/AsyncOp.cpp
        source/ByteBuffer.cpp
        source/EndpointResolver.cpp
        source/LinkedListBase.cpp
        source/OperationListBase.cpp
        source/PolledQueue.cpp
        source/TaskBase.cpp
        source/USBAudio.cpp
        source/USBCDC.cpp
        source/USBCDC_ECM.cpp
        source/USBDevice.cpp
        source/USBHID.cpp
        source/USBKeyboard.cpp
        source/USBMIDI.cpp
        source/USBMSD.cpp
        source/USBMouse.cpp
        source/USBMouseKeyboard.cpp
        source/USBSerial.cpp
)

target_link_libraries(mbed-usb INTERFACE mbed-storage)

{'fraction_non_alphanumeric': 0.07197802197802197, 'fraction_numerical': 0.006593406593406593, 'mean_word_length': 2.3535911602209945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '486355', 'n_tokens_mistral': 579, 'n_tokens_neox': 571, 'n_words': 86}