blob: 8f015a1ade396065e7d24b346b2ed17fb5c45872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# libusb/CMakeLists.txt - Build script for libusb support library
#
# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
# 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
)
|