summaryrefslogtreecommitdiff
path: root/libusb/CMakeLists.txt
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 17:25:36 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-27 17:25:36 -0600
commite5e15c04bc58c34906e6d7cfcbad68d1a5617563 (patch)
tree580f5fb0fafc7e974c969fc8aae229205c836195 /libusb/CMakeLists.txt
parent71e1a86a033c380f85dd300d788af63bfef25bab (diff)
wip
Diffstat (limited to 'libusb/CMakeLists.txt')
-rw-r--r--libusb/CMakeLists.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/libusb/CMakeLists.txt b/libusb/CMakeLists.txt
new file mode 100644
index 0000000..8f015a1
--- /dev/null
+++ b/libusb/CMakeLists.txt
@@ -0,0 +1,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
+)