# libusb/CMakeLists.txt - Build script for libusb support library # # Copyright (C) 2024 Luke T. Shumaker # SPDX-Licence-Identifier: AGPL-3.0-or-later add_library(libusb INTERFACE) target_sources(libusb INTERFACE usb_common.c ) target_include_directories(libusb SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include) add_custom_command( OUTPUT ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.pdf ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.txt ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.h DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.gen COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.gen ) add_dependencies(generate ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.pdf ${CMAKE_SOURCE_DIR}/3rd-party/MS-LCID.txt ${CMAKE_CURRENT_SOURCE_DIR}/include/libusb/tusb_helpers.h )